This commit is contained in:
2016-06-11 15:23:53 +10:00
parent 33c040453a
commit a7f95395bf

View File

@@ -1054,11 +1054,11 @@ function booking_form_validate($form, &$form_state) {
//validate guardian phone number //validate guardian phone number
if ($data['booking_country'] == 'Australia') { if ($data['booking_country'] == 'Australia') {
if (!_valid_australian_mobile_number($data['booking_guardian_phone']) { if (!_valid_australian_mobile_number($data['booking_guardian_phone'])) {
form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.')); form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.'));
} }
} else { } else {
if (!_valid_phone_number($data['booking_guardian_phone']) { if (!_valid_phone_number($data['booking_guardian_phone'])) {
form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.')); form_set_error('booking_guardian_phone', t('You have entered an invalid contact phone number for your emergency contact.'));
} }
} }