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

@@ -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 (('/^(\w*?)\s+(\w*)/', $person->booking_partner_name, $matches))
if (preg_match('/^(\w*?)\s+(\w*)/', $person->booking_partner_name, $matches))
{
watchdog('booking', 'Spouse checking. Firstname: "!first", surname "!last"',
array ('!first' => $matches[1], '!last' => $matches[2]));