small fix to the Cache::read() use of Cache::set() when using default configuration

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7723 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-10-09 23:24:28 +00:00
parent 9a22018e40
commit 88e5d14c3c

View file

@ -311,7 +311,7 @@ class Cache extends Object {
} }
$success = $_this->_Engine[$engine]->read($settings['prefix'] . $key); $success = $_this->_Engine[$engine]->read($settings['prefix'] . $key);
if ($config !== $_this->__name) { if ($config !== null && $config !== $_this->__name) {
$settings = $_this->set(); $settings = $_this->set();
} }
return $success; return $success;