fix error handling
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
|
||||
function booking_admin()
|
||||
{
|
||||
$form = array();
|
||||
$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'
|
||||
|
Reference in New Issue
Block a user