Skip to content

Commit 00da425

Browse files
authored
Fixed Undefined variable $res in Mage_Core_Model_Cache (OpenMage#3255)
1 parent 428a8ec commit 00da425

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/core/Mage/Core/Model/Cache.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,10 @@ public function clean($tags = [])
419419
if (!is_array($tags)) {
420420
$tags = [$tags];
421421
}
422-
$res = $this->getFrontend()->clean($mode, $this->_tags($tags));
423-
} else {
424-
$this->flush();
422+
return $this->getFrontend()->clean($mode, $this->_tags($tags));
425423
}
426-
return $res;
424+
425+
return $this->flush();
427426
}
428427

429428
/**

0 commit comments

Comments
 (0)