Wrap index reference in empty() check - closes cakephp#13001

This commit is contained in:
Benjamin Stout 2019-02-19 16:32:25 -08:00
parent 664af06851
commit d486e1ca9e

View file

@ -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();
}
}