From 6120d4e69d6d2d6e0f3db704a24d0b07bd6851d2 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 16 Sep 2013 09:02:48 +0200 Subject: [PATCH] add return statement in clear cache method --- core/lib/Thelia/Model/ConfigQuery.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()