tidy up sqlview error handling
This commit is contained in:
@@ -16,7 +16,7 @@ function booking_admin()
|
|||||||
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
|
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
watchdog('booking_debug', "<pre>SQL View booking_person_view check does not exist\n@info</pre>", array('@info' => print_r( $e, true)));
|
watchdog('booking_debug', "<pre>SQL View booking_person_view check does not exist\n@info</pre>", array('@info' => $e->message));
|
||||||
_booking_node_create_mysqlview();
|
_booking_node_create_mysqlview();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
@@ -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
|
* This will be used to select which fields to import/export to/from a CSV
|
||||||
*/
|
*/
|
||||||
function _booking_get_person_fields() {
|
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();
|
$list_of_columns = array();
|
||||||
$query = db_query('SHOW COLUMNS FROM {booking_person_view}');
|
$query = db_query('SHOW COLUMNS FROM {booking_person_view}');
|
||||||
$result = $query->fetchAll();
|
$result = $query->fetchAll();
|
||||||
|
Reference in New Issue
Block a user