diff --git a/classes/Tools.php b/classes/Tools.php index a3e8f1c10..563dee308 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -2044,10 +2044,10 @@ FileETag INode MTime Size if (is_null($smarty)) $smarty = Context::getContext()->smarty; - if (!tpl && is_null(cache_id) && is_null(compile_id)) + if (!$tpl && $cache_id === null && $compile_id === null) return $smarty->clearAllCache(); - else - return $smarty->clearCache($template, $cache_id, $compile_id); + + return $smarty->clearCache($template, $cache_id, $compile_id); } /**