cleanup trailing whitespace

This commit is contained in:
2016-05-19 08:24:50 +10:00
parent ea0a6bb8fc
commit f027df3f6e
15 changed files with 35 additions and 42 deletions

View File

@@ -35,7 +35,7 @@ function booking_roomallocations_view_summary() {
$query->condition($db_and);
$query->fields('p')->fields('m')->fields('r')->fields('l');
$table_sort = $query->extend('TableSort')->orderbyHeader($header);
$result = $table_sort->execute();
$result = $table_sort->execute();
foreach($result as $data) {
$location_link = $data->booking_roomlocation_descrip . l(
@@ -302,7 +302,7 @@ function booking_room_edit_form_validate($form, &$form_state) {
//get the room definition from the database so we can verify there is capacity
$details = db_query("SELECT * FROM {booking_room_definition} WHERE booking_room_location_id = :lid AND booking_room_number = :num",
array(':lid' => $values['booking_room_location_id'], ':num' => $values['booking_room_number']))->fetchObject();
array(':lid' => $values['booking_room_location_id'], ':num' => $values['booking_room_number']))->fetchObject();
//perform a check to see if this person is already allocated to this bed
$check = db_query("SELECT * FROM {booking_room_mapping} WHERE booking_eventid = :eid AND booking_nodeid = :nid",
@@ -344,7 +344,6 @@ function booking_room_edit_form_submit($form, &$form_state) {
->condition('booking_eventid', $event->eid)
->condition('booking_nodeid', $values['personid'])
->execute();
//return;
}
@@ -441,7 +440,7 @@ function booking_rooms_view_form($node, &$form_state, $location_id) {
$attendees = db_query("SELECT nid, booking_firstname, booking_lastname, booking_gender, booking_dob, booking_partner_id " .
" FROM {booking_person} " .
" WHERE booking_eventid = :eid and (booking_status=1 or booking_status=5) order by booking_lastname, booking_firstname",
array(':eid' => $event->eid))->fetchAllAssoc('nid');
array(':eid' => $event->eid))->fetchAllAssoc('nid');
//define the header
$header = array (
@@ -533,7 +532,7 @@ function booking_rooms_view_form($node, &$form_state, $location_id) {
_booking_rooms_view_formatperson($attendees, (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : 0),
),
);
}
}
}