// Fix assignations in conditions with logical operators + normalize

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12912 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-01 16:42:20 +00:00
parent 3f67f95a5c
commit 7fe9fd241d
7 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ class AuthControllerCore extends FrontController
{
// if registration type is in one step, we save the address
if (Configuration::get('PS_REGISTRATION_PROCESS_TYPE'))
if (!$country = new Country($address->id_country, Configuration::get('PS_LANG_DEFAULT')) || !Validate::isLoadedObject($country))
if (!($country = new Country($address->id_country, Configuration::get('PS_LANG_DEFAULT'))) || !Validate::isLoadedObject($country))
die(Tools::displayError());
$contains_state = isset($country) && is_object($country) ? (int)$country->contains_state: 0;
$id_state = isset($address) && is_object($address) ? (int)$address->id_state: 0;