//bad commit for Auth controller sorry about this

This commit is contained in:
gRoussac
2013-03-26 16:36:51 +01:00
parent c9c9454ca5
commit fdbceb7db0
+2
View File
@@ -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))