//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:
1 parent
60695b93cc
commit
1ccc71e3c3
1 file changed
+1
-1
@@ -85,7 +85,7 @@ class AdminGeolocationControllerCore extends AdminController
|
|||||||
public function processUpdateOptions()
|
public function processUpdateOptions()
|
||||||
{
|
{
|
||||||
if ($this->isGeoLiteCityAvailable())
|
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
|
// stop processing if geolocation is set to yes but geolite pack is not available
|
||||||
elseif (Tools::getValue('PS_GEOLOCATION_ENABLED'))
|
elseif (Tools::getValue('PS_GEOLOCATION_ENABLED'))
|
||||||
$this->errors[] = Tools::displayError('Geolocation database is unavailable.');
|
$this->errors[] = Tools::displayError('Geolocation database is unavailable.');
|
||||||
|
|||||||
Reference in new issue
Block a user