mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
9a22018e40
commit
88e5d14c3c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue