fix error handling

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

View File

@@ -7,6 +7,7 @@
function booking_admin()
{
$form = array();
//regenerate all our menu hooks when loading this form
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)));
}
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();
}
/*
if (! $sqlview_check) {
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 commences here
$form['email'] = array(
'#type' => 'fieldset',
'#title' => 'Email Addresses'