Fixes for PHP 5.4+
This commit is contained in:
@@ -134,11 +134,9 @@ function booking_rooms_allocate_test_form($node, &$form_state, $location_id) {
|
||||
|
||||
//create an additional row for each queen bed
|
||||
//_booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $default_row, &$counter, &$form);
|
||||
_booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $default_row, $counter, $form);
|
||||
|
||||
}
|
||||
_booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $default_row, $counter, $form);
|
||||
} //end foreach $room_query
|
||||
|
||||
|
||||
$form['submit'] = array (
|
||||
'#type' => 'submit',
|
||||
'#value' => t('Submit'),
|
||||
@@ -147,8 +145,7 @@ function booking_rooms_allocate_test_form($node, &$form_state, $location_id) {
|
||||
return array (
|
||||
'form' => $form,
|
||||
);
|
||||
|
||||
}
|
||||
} //end booking_rooms_allocate_test_form
|
||||
|
||||
/**
|
||||
* Process the submission for room assignment
|
||||
@@ -177,7 +174,6 @@ function booking_rooms_allocate_test_form_submit($form, &$form_state) {
|
||||
//go through the different bed types
|
||||
foreach ($bed_inputs as $type => $type_id)
|
||||
{
|
||||
|
||||
//if this bed type wasn't defined in the form, skip it
|
||||
if (empty($values[$type]))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user