diff --git a/booking.admin.inc b/booking.admin.inc index 11af2da..79bbb6f 100644 --- a/booking.admin.inc +++ b/booking.admin.inc @@ -16,7 +16,7 @@ function booking_admin() watchdog('booking_debug', "
SQL View booking_person_view check\n@info", array('@info' => print_r( $sqlview_check, true))); } catch (Exception $e) { - watchdog('booking_debug', "
SQL View booking_person_view check does not exist\n@info", array('@info' => print_r( $e, true))); + watchdog('booking_debug', "
SQL View booking_person_view check does not exist\n@info", array('@info' => $e->message)); _booking_node_create_mysqlview(); } /* diff --git a/booking.helper.inc b/booking.helper.inc index 9b84849..8a4be49 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1317,9 +1317,6 @@ function _booking_paypal_form_builder($node, &$form_state, $person, $invoiceid, * This will be used to select which fields to import/export to/from a CSV */ function _booking_get_person_fields() { - //@todo check if the view exists and only call this if necessary - _booking_node_create_mysqlview(); - $list_of_columns = array(); $query = db_query('SHOW COLUMNS FROM {booking_person_view}'); $result = $query->fetchAll();