mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +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
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue