summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-03-12 12:15:30 +0100
committerMasterklavi <masterklavi@gmail.com>2016-03-12 12:15:30 +0100
commit0c70b8ab83998c3771bbda3a9717da574f421357 (patch)
treeeb4a8264f7f738ca394667072bc2643b622e3d0f /system/libraries/Cache
parent12c3d1474e43cdd6e76245e89f11440793a5d8f0 (diff)
Fixed a condition in the get method
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index c334afb0d..a50eb22ac 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -145,7 +145,7 @@ class CI_Cache_redis extends CI_Driver
{
$value = $this->_redis->hMGet($key, array('type', 'data'));
- if ( ! is_array($value) OR ! isset($value['type'], $value['data']))
+ if ($value === FALSE OR $value['type'] === FALSE)
{
return FALSE;
}