Fixes for PHP 5.4+

This commit is contained in:
2016-04-28 18:06:27 +10:00
parent b10da453e5
commit c1b2621d3b
5 changed files with 12 additions and 10 deletions

View File

@@ -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;