diff --git a/booking.travel.inc b/booking.travel.inc index 8cac6eb..4043cd3 100644 --- a/booking.travel.inc +++ b/booking.travel.inc @@ -17,6 +17,7 @@ function booking_travel_page() return ""; } + //verify that this feature is enabled if (variable_get('booking_enable_travelform', 0) == 0) { drupal_set_message("Error: The travel form is not enabled. Please use the contact us form to inform the site owner of this error.", 'error', FALSE); drupal_goto('content/travel'); @@ -26,9 +27,8 @@ function booking_travel_page() //work out the node id from the session id $query = db_select('booking_person', 'p'); - $query->condition('p.booking_tempid', arg(1), '=')->fields('p', array( - 'nid' - )); + $query->condition('p.booking_tempid', arg(1), '=') + ->fields('p', array('nid')); $person = $query->execute()->fetchObject(); //if we found a matching person @@ -696,4 +696,4 @@ function travel_view($node, $view_mode) '#weight' => 1 ); return $node; -} \ No newline at end of file +}