bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.6k forks source link

Undefined variable in cache redis #6272

Open b1tc0re opened 8 months ago

b1tc0re commented 8 months ago

Variable $value is undefined in cache redis.

Maybe you still need to check it like this

if  (! isset($data['__ci_type'], $data['__ci_value']) || ($data['__ci_value'] === FALSE && $this->_redis->sIsMember('_ci_redis_serialized', $key))  )
{
            return null;
}