Skip to content

Commit

Permalink
Undefined variable in cache redis
Browse files Browse the repository at this point in the history
Variable $value is undefined in cache redis
  • Loading branch information
b1tc0re authored Mar 4, 2024
1 parent 70d0a0e commit 16b42e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/libraries/Cache/drivers/Cache_redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function get($key)
{
$data = $this->_redis->hMGet($key, array('__ci_type', '__ci_value'));

if ($value !== FALSE && $this->_redis->sIsMember('_ci_redis_serialized', $key))
if ($data['__ci_value'] !== FALSE && $this->_redis->sIsMember('_ci_redis_serialized', $key))
{
return FALSE;
}
Expand Down

0 comments on commit 16b42e6

Please sign in to comment.