Skip to content

Commit

Permalink
//bad commit for Auth controller sorry about this
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Mar 26, 2013
1 parent af61d86 commit ddb2bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/front/AuthController.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ protected function processSubmitAccount()
$address->address2 = $normalize->AddressLineStandardization($address->address2); $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'); $postcode = Tools::getValue('postcode');
/* Check zip code format */ /* Check zip code format */
if ($country->zip_code_format && !$country->checkZipCode($postcode)) if ($country->zip_code_format && !$country->checkZipCode($postcode))
Expand Down

0 comments on commit ddb2bf1

Please sign in to comment.