git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14315 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-03-28 09:14:10 +00:00
parent 60695b93cc
commit 1ccc71e3c3
@@ -85,7 +85,7 @@ class AdminGeolocationControllerCore extends AdminController
public function processUpdateOptions()
{
if ($this->isGeoLiteCityAvailable())
Configuration::updateValue('PS_GEOLOCATION_ENABLED', intval(Tools::getValue('PS_GEOLOCATION_ENABLED')));
Configuration::updateValue('PS_GEOLOCATION_ENABLED', (int)Tools::getValue('PS_GEOLOCATION_ENABLED'));
// stop processing if geolocation is set to yes but geolite pack is not available
elseif (Tools::getValue('PS_GEOLOCATION_ENABLED'))
$this->errors[] = Tools::displayError('Geolocation database is unavailable.');