Browse files

//bad commit for Auth controller sorry about this

  • Loading branch information...
1 parent af61d86 commit ddb2bf16021e69f58b2204396f6e7d96889527c3 @gRoussac gRoussac committed Mar 26, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 controllers/front/AuthController.php
View
2 controllers/front/AuthController.php
@@ -486,6 +486,8 @@ protected function processSubmitAccount()
$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))

0 comments on commit ddb2bf1

Please sign in to comment.