//norme
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14315 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user