[-] FO : Fix error with geolocation enabled and satellite connection

This commit is contained in:
rGaillard
2012-11-13 11:09:21 +00:00
parent 9f51c6adc0
commit a76ed36cae

View File

@@ -699,7 +699,8 @@ class FrontControllerCore extends Controller
}
}
}
if (isset($this->context->cookie->iso_code_country) && $this->context->cookie->iso_code_country && !Validate::isLanguageIsoCode($this->context->cookie->iso_code_country))
$this->context->cookie->iso_code_country = Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT'));
if (isset($this->context->cookie->iso_code_country) && ($id_country = Country::getByIso(strtoupper($this->context->cookie->iso_code_country))))
{
/* Update defaultCountry */