diff --git a/core/lib/Thelia/Model/ConfigQuery.php b/core/lib/Thelia/Model/ConfigQuery.php index 5ae748df4..7df592fd2 100755 --- a/core/lib/Thelia/Model/ConfigQuery.php +++ b/core/lib/Thelia/Model/ConfigQuery.php @@ -37,10 +37,11 @@ class ConfigQuery extends BaseConfigQuery { if($key) { if(array_key_exists($key, self::$cache)) { unset(self::$cache[$key]); + return true; } - } else { - self::$cache = array(); } + self::$cache = array(); + return true; } public static function getDefaultLangWhenNoTranslationAvailable()