Slight changes

This commit is contained in:
2014-12-01 22:53:45 +11:00
parent e5b825b837
commit 7a0220aa86
12 changed files with 56 additions and 45 deletions

View File

@@ -115,7 +115,7 @@ function booking_event_form($node, &$form_state, $create, $editid = 0)
else
{
//verify that $editid is a number
if (! preg_match('/^[0-9]+$/', $editid)) {
if (! ('/^[0-9]+$/', $editid)) {
drupal_set_message("Error: Invalid event ID supplied. Unable to update event information.", 'error', FALSE);
drupal_goto('admin/config/booking/events');
return "";
@@ -255,7 +255,7 @@ function booking_event_form_submit($form, &$form_state) {
elseif ($form_state['values']['op'] == 'Delete')
{
//verify that booking_eid is a number
if (! preg_match('/^[0-9]+$/', $values['booking_eid'])) {
if (! ('/^[0-9]+$/', $values['booking_eid'])) {
drupal_set_message("Error: Invalid event ID supplied. Unable to delete event entry.", 'error', FALSE);
return "";
}
@@ -271,7 +271,7 @@ function booking_event_form_submit($form, &$form_state) {
else
{
//verify that booking_eid is a number
if (! preg_match('/^[0-9]+$/', $values['booking_eid'])) {
if (! ('/^[0-9]+$/', $values['booking_eid'])) {
drupal_set_message("Error: Invalid event ID supplied. Unable to update event entry.", 'error', FALSE);
return "";
}