Slight changes
This commit is contained in:
@@ -26,7 +26,7 @@ function booking_available_leadhelp_select_form($node, &$form_state, $group_id)
|
||||
);
|
||||
|
||||
//verify that $group_id is a number
|
||||
if (! preg_match('/^[0-9]+$/', $group_id)) {
|
||||
if (! ('/^[0-9]+$/', $group_id)) {
|
||||
drupal_set_message("Error: Invalid study group ID '" . $group_id . "' supplied. Unable to edit group leaders and helpers.", 'error', FALSE);
|
||||
drupal_goto('admin/booking/studygroups');
|
||||
return "";
|
||||
@@ -383,7 +383,7 @@ function booking_studygroups_edit_form($node, &$form_state, $nid) {
|
||||
$readinggroup_options[0] = '';
|
||||
|
||||
//verify that $nid is a number
|
||||
if (! preg_match('/^[0-9]+$/', $nid)) {
|
||||
if (! ('/^[0-9]+$/', $nid)) {
|
||||
drupal_set_message("Error: Invalid registration ID '" . $nid . "' supplied. Unable to edit study group sessions.", 'error', FALSE);
|
||||
drupal_goto('admin/booking/studygroups');
|
||||
return "";
|
||||
@@ -522,7 +522,7 @@ function booking_studygroups_edit_form_submit($form, &$form_state) {
|
||||
$values = $form_state['input'];
|
||||
|
||||
//check that $values['personid'] is a number
|
||||
if (! preg_match('/^[0-9]+$/', $values['personid'])) {
|
||||
if (! ('/^[0-9]+$/', $values['personid'])) {
|
||||
//parameter from url is not what we were expecting
|
||||
drupal_set_message("Error: Invalid form data supplied. Please use the contact us form to let us know.", 'error', FALSE);
|
||||
return "";
|
||||
@@ -979,7 +979,7 @@ function booking_studygroups_update_form($node, &$form_state, $sid) {
|
||||
$inserts_to_confirm = array();
|
||||
|
||||
//verify that $nid is a number
|
||||
if (! preg_match('/^[0-9]+$/', $sid)) {
|
||||
if (! ('/^[0-9]+$/', $sid)) {
|
||||
drupal_set_message("Error: Invalid group ID '" . $sid . "' supplied. Unable to update study group session.", 'error', FALSE);
|
||||
drupal_goto('admin/booking/studygroups');
|
||||
return "";
|
||||
@@ -1484,7 +1484,7 @@ function booking_studygroups_printview_form($node, &$form_state, $group_id) {
|
||||
|
||||
|
||||
//verify that $group_id is a number
|
||||
if (! preg_match('/^[0-9]+$/', $group_id)) {
|
||||
if (! ('/^[0-9]+$/', $group_id)) {
|
||||
drupal_set_message("Error: Invalid study group ID '" . $group_id . "' supplied. Unable to view group membership.", 'error', FALSE);
|
||||
drupal_goto('admin/config/booking');
|
||||
return "";
|
||||
@@ -1612,7 +1612,7 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
|
||||
);
|
||||
*/
|
||||
//verify that $group_id is a number
|
||||
if (! preg_match('/^[0-9]+$/', $group_id)) {
|
||||
if (! ('/^[0-9]+$/', $group_id)) {
|
||||
drupal_set_message("Error: Invalid study group ID '" . $group_id . "' supplied. Unable to view group membership.", 'error', FALSE);
|
||||
drupal_goto('admin/config/booking');
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user