From 443d932dde010cd96fd347097a0c0b78766b8a2c Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 28 Mar 2012 09:14:10 +0000 Subject: [PATCH] //norme --- controllers/admin/AdminGeolocationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminGeolocationController.php b/controllers/admin/AdminGeolocationController.php index 93382dae8..8ae4834f7 100755 --- a/controllers/admin/AdminGeolocationController.php +++ b/controllers/admin/AdminGeolocationController.php @@ -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.');