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

@ -175,7 +175,7 @@ class Cache extends Object {
*
* @param mixed $settings Optional string for simple name-value pair or array
* @param string $value Optional for a simple name-value pair
* @return array of settings
* @return array of settings
* @access public
* @static
*/
@ -311,7 +311,7 @@ class Cache extends Object {
}
$success = $_this->_Engine[$engine]->read($settings['prefix'] . $key);
if ($config !== $_this->__name) {
if ($config !== null && $config !== $_this->__name) {
$settings = $_this->set();
}
return $success;