Fix preg_match fail

This commit is contained in:
2014-12-01 23:06:39 +11:00
parent 57a7704e62
commit 51bc775664
13 changed files with 38 additions and 38 deletions

View File

@@ -14,7 +14,7 @@ function booking_partial_balance_page() {
$partial_amount = arg(2);
//verify that arg(1) is a uuid
if (! ('/^[0-9A-Fa-f\-]+$/', $temp_id)) {
if (! preg_match('/^[0-9A-Fa-f\-]+$/', $temp_id)) {
//parameter from url is not what we were expecting
drupal_set_message("Error: Invalid session ID supplied to the partial payment page. Please use the contact us form to let us know.", 'error', FALSE);
drupal_goto('<front>');
@@ -22,7 +22,7 @@ function booking_partial_balance_page() {
}
//verify that arg(2) is a number
if (! ('/^[0-9]+$/', $partial_amount)) {
if (! preg_match('/^[0-9]+$/', $partial_amount)) {
drupal_set_message("Error: Invalid payment amount supplied to the partial payment page. Please use the contact us form to let us know.", 'error', FALSE);
drupal_goto('<front>');
return "";