Skip to content

Commit

Permalink
Fixed Undefined variable $res in Mage_Core_Model_Cache (OpenMage#3255)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed May 15, 2023
1 parent 428a8ec commit 00da425
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/code/core/Mage/Core/Model/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 00da425

Please sign in to comment.