From 6a0e2046498de46a8944426f33909ee7420ebf0f Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sun, 8 Mar 2015 21:13:47 +1100 Subject: [PATCH] another bugfix --- booking.prices.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booking.prices.inc b/booking.prices.inc index 1c06293..5ad58dc 100644 --- a/booking.prices.inc +++ b/booking.prices.inc @@ -115,7 +115,7 @@ function booking_price_form($node, &$form_state, $create, $editid = 0) else { //verify that $editid is a number - if preg_match(! ('/^[0-9]+$/', $editid)) { + if (! preg_match('/^[0-9]+$/', $editid)) { drupal_set_message("Error: Invalid price ID supplied. Unable to update price entry.", 'error', FALSE); drupal_goto('admin/config/booking/prices'); return "";