mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #13002 from benjaminstout/issue-13001-redis-engine-undefined-index
Wrap index reference in empty() check - closes cakephp#13001
This commit is contained in:
commit
307e11f507
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class RedisEngine extends CacheEngine {
|
||||||
* Disconnects from the redis server
|
* Disconnects from the redis server
|
||||||
*/
|
*/
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
if (!$this->settings['persistent']) {
|
if (empty($this->settings['persistent']) && $this->_Redis !== null) {
|
||||||
$this->_Redis->close();
|
$this->_Redis->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue