fix error handling

This commit is contained in:
2016-06-01 22:20:18 +10:00
parent 647853326c
commit b9c032558e

View File

@@ -6,7 +6,8 @@
function booking_admin() function booking_admin()
{ {
$form = array(); $form = array();
//regenerate all our menu hooks when loading this form //regenerate all our menu hooks when loading this form
menu_rebuild(); menu_rebuild();
@@ -16,19 +17,11 @@ 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' => $e->message)); watchdog('booking_debug', "<pre>SQL View booking_person_view check does not exist\n@info</pre>", array('@info' => $e->getMessage()));
_booking_node_create_mysqlview(); _booking_node_create_mysqlview();
} }
/*
if (! $sqlview_check) { //form commences here
watchdog('booking_debug', "SQL View booking_person_view check does not exist");
_booking_node_create_mysqlview();
}
else {
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
}
*/
$form['email'] = array( $form['email'] = array(
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => 'Email Addresses' '#title' => 'Email Addresses'