//bad commit for Auth controller sorry about this

This commit is contained in:
gRoussac
2013-03-26 18:05:54 +01:00
parent af61d866a7
commit ddb2bf1602
+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))