summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php4
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']);
}