Slight changes
This commit is contained in:
@@ -12,7 +12,7 @@ function booking_confirm_page() {
|
||||
$paypal_form = "";
|
||||
|
||||
//verify that arg(1) is a uuid
|
||||
if (! preg_match('/^[0-9A-Fa-f\-]+$/', arg(1))) {
|
||||
if (! ('/^[0-9A-Fa-f\-]+$/', arg(1))) {
|
||||
//parameter from url is not what we were expecting
|
||||
drupal_set_message("Error: Invalid session ID supplied to the registration confirmation page. Please use the contact us form to let us know.", 'error', FALSE);
|
||||
drupal_goto('<front>');
|
||||
@@ -106,7 +106,7 @@ function booking_confirm_page() {
|
||||
$form_action = variable_get('booking_paypal_sandbox', 0) ? BOOKING_PAYPAL_SUBMIT_URL_SANDBOX : BOOKING_PAYPAL_SUBMIT_URL;
|
||||
|
||||
//verify that arg(1) is a uuid
|
||||
if (! preg_match('/^[0-9A-Fa-f\-]+$/', arg(1))) {
|
||||
if (! ('/^[0-9A-Fa-f\-]+$/', arg(1))) {
|
||||
//parameter from url is not what we were expecting
|
||||
drupal_set_message("Error: Invalid session ID supplied. Please use the contact us form to let us know.", 'error', FALSE);
|
||||
return "";
|
||||
@@ -142,7 +142,7 @@ function booking_confirm_page() {
|
||||
array('!fee' => $person->booking_price));
|
||||
|
||||
//watchdog('booking', 'Partner name "@info"', array ('@info' => var_export($person->booking_partner_name, TRUE)));
|
||||
if (preg_match('/^(\w*?)\s+(\w*)/', $person->booking_partner_name, $matches))
|
||||
if (('/^(\w*?)\s+(\w*)/', $person->booking_partner_name, $matches))
|
||||
{
|
||||
watchdog('booking', 'Spouse checking. Firstname: "!first", surname "!last"',
|
||||
array ('!first' => $matches[1], '!last' => $matches[2]));
|
||||
|
Reference in New Issue
Block a user