From fdbceb7db0db3037c2c951fed3e8cae5cb817637 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 26 Mar 2013 16:36:51 +0100 Subject: [PATCH] //bad commit for Auth controller sorry about this --- controllers/front/AuthController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index 5ce965245..64f84b2bf 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -486,6 +486,8 @@ class AuthControllerCore extends FrontController $address->address2 = $normalize->AddressLineStandardization($address->address2); } + if (!($country = new Country($address->id_country)) || !Validate::isLoadedObject($country)) + $this->errors[] = Tools::displayError('Country cannot be loaded with address->id_country'); $postcode = Tools::getValue('postcode'); /* Check zip code format */ if ($country->zip_code_format && !$country->checkZipCode($postcode))