// Fix Shop::isFeatureActive() #PSCFV-2609
This commit is contained in:
@@ -790,7 +790,7 @@ class ShopCore extends ObjectModel
|
|||||||
static $feature_active = null;
|
static $feature_active = null;
|
||||||
|
|
||||||
if ($feature_active === null)
|
if ($feature_active === null)
|
||||||
$feature_active = Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') && (count(Db::getInstance()->getValue('SELECT COUNT(*) FROM '._DB_PREFIX_.'shop')) > 1);
|
$feature_active = Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') && (Db::getInstance()->getValue('SELECT COUNT(*) FROM '._DB_PREFIX_.'shop') > 1);
|
||||||
|
|
||||||
return $feature_active;
|
return $feature_active;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1010 B |
Reference in New Issue
Block a user