// Many improvements for Feature Detachable

This commit is contained in:
aFolletete
2011-09-19 15:55:52 +00:00
parent 2a56b5470f
commit 21668617b7
11 changed files with 180 additions and 169 deletions
+4 -4
View File
@@ -126,12 +126,12 @@ class CustomizationCore
public static function isFeatureActive()
{
if (self::$feature_active === null)
self::$feature_active = (Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
SELECT COUNT(*)
self::$feature_active = (bool)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
SELECT `id_customization_field`
FROM `'._DB_PREFIX_.'customization_field`
') > 1);
');
return self::$feature_active;
}
}