diff options
author | Masterklavi <masterklavi@gmail.com> | 2016-03-12 12:15:30 +0100 |
---|---|---|
committer | Masterklavi <masterklavi@gmail.com> | 2016-03-12 12:15:30 +0100 |
commit | 0c70b8ab83998c3771bbda3a9717da574f421357 (patch) | |
tree | eb4a8264f7f738ca394667072bc2643b622e3d0f /system/libraries/Cache/drivers | |
parent | 12c3d1474e43cdd6e76245e89f11440793a5d8f0 (diff) |
Fixed a condition in the get method
Diffstat (limited to 'system/libraries/Cache/drivers')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 2 |
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; } |