diff --git a/dist/doofinder-p1.5-latest.zip b/dist/doofinder-p1.5-latest.zip index 50181b1..7649f73 100644 Binary files a/dist/doofinder-p1.5-latest.zip and b/dist/doofinder-p1.5-latest.zip differ diff --git a/doofinder.php b/doofinder.php index 989568f..537ac6b 100644 --- a/doofinder.php +++ b/doofinder.php @@ -43,7 +43,7 @@ class Doofinder extends Module const GS_SHORT_DESCRIPTION = 1; const GS_LONG_DESCRIPTION = 2; - const VERSION = "1.5.8"; + const VERSION = "1.5.9"; const YES = 1; const NO = 0; @@ -485,7 +485,11 @@ protected function getYesNoSelectFor($optname, $label) public function cfg($key, $default=null) { - - return dfTools::cfg($this->context->id_shop, $key, $default); + if(isset($this->context->id_shop)){ + return dfTools::cfg($this->context->id_shop, $key, $default); + } + else{ + return dfTools::cfg(null, $key, $default); + } } } diff --git a/package.json b/package.json index 5d6590a..4caf220 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "doofinder-for-prestashop", - "version": "1.5.8", + "version": "1.5.9", "devDependencies": { "grunt": "^0.4.5", "grunt-contrib-clean": "^0.5.0",