mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Wrap index reference in empty() check - closes cakephp#13001
This commit is contained in:
parent
664af06851
commit
d486e1ca9e
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->close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue