more preg_match fixes

This commit is contained in:
2014-12-01 23:08:40 +11:00
parent 51bc775664
commit 3a9c06e19a
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ function booking_price_form_submit($form, &$form_state) {
} else {
//verify that booking_pid is a number
if (! ('/^[0-9]+$/', $values['booking_pid'])) {
if (! preg_match('/^[0-9]+$/', $values['booking_pid'])) {
drupal_set_message("Error: Invalid price ID supplied. Unable to update price entry.", 'error', FALSE);
return "";
}