mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +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
|
||||
*/
|
||||
public function __destruct() {
|
||||
if (!$this->settings['persistent']) {
|
||||
if (empty($this->settings['persistent']) && $this->_Redis !== null) {
|
||||
$this->_Redis->close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue