From 00da425cad5b340bbf2e482f2f94012316e343cc Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Mon, 15 May 2023 14:07:05 +0100 Subject: [PATCH] Fixed Undefined variable $res in Mage_Core_Model_Cache (#3255) --- app/code/core/Mage/Core/Model/Cache.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/code/core/Mage/Core/Model/Cache.php b/app/code/core/Mage/Core/Model/Cache.php index bc34eb5072f..87cd6476d82 100644 --- a/app/code/core/Mage/Core/Model/Cache.php +++ b/app/code/core/Mage/Core/Model/Cache.php @@ -419,11 +419,10 @@ public function clean($tags = []) if (!is_array($tags)) { $tags = [$tags]; } - $res = $this->getFrontend()->clean($mode, $this->_tags($tags)); - } else { - $this->flush(); + return $this->getFrontend()->clean($mode, $this->_tags($tags)); } - return $res; + + return $this->flush(); } /**