From 8c40e856da021eb1bf00df3ba1d72d918778369d Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 22 Oct 2012 16:47:16 +0000 Subject: [PATCH] //small fix --- controllers/front/AuthController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index d58c8fe54..26effdaea 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -392,8 +392,9 @@ class AuthControllerCore extends FrontController $_POST['lastname'] = Tools::getValue('customer_lastname'); $_POST['firstname'] = Tools::getValue('customer_firstname'); - if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile') && !Configuration::get('PS_REGISTRATION_PROCESS_TYPE')) - $this->errors[] = Tools::displayError('You must register at least one phone number'); + if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile') && + (Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_GUEST_CHECKOUT_ENABLED'))) + $this->errors[] = Tools::displayError('You must register at least one phone number'); $this->errors = array_unique(array_merge($this->errors, $customer->validateController()));