diff options
author | Masterklavi <masterklavi@gmail.com> | 2016-03-12 08:40:07 +0100 |
---|---|---|
committer | Masterklavi <masterklavi@gmail.com> | 2016-03-12 08:40:07 +0100 |
commit | 25da4ec2e02d7ec258f11916d1b9b40c10b97ace (patch) | |
tree | 23b2973417ffe2ad12c8dffd565fc5dc8dac8f08 /system/libraries/Cache/drivers/Cache_redis.php | |
parent | e5102e1fa8adaa7317f8d3da773f8b77d6f7a2c1 (diff) |
Fixed the index existence error
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index c50da1303..a302609a2 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -145,12 +145,12 @@ class CI_Cache_redis extends CI_Driver { $value = $this->_redis->hMGet($key, array('serialized', 'data')); - if ( ! is_array($value)) + if ( ! is_array($value) OR ! isset($value['serialized'], $value['data'])) { return FALSE; } - if ( ! empty($value['serialized'])) + if ($value['serialized']) { return unserialize($value['data']); } |