diff options
author | Masterklavi <masterklavi@gmail.com> | 2016-03-12 12:32:13 +0100 |
---|---|---|
committer | Masterklavi <masterklavi@gmail.com> | 2016-03-12 12:32:13 +0100 |
commit | 0abb9777fd45cf87dc3e0e4780ae2292b2822407 (patch) | |
tree | d9ae62d9b425cdd120f626df97ab577bd0a551de /system | |
parent | f26a876acf4cca26329dfbe3d0eee1aa0c05ace0 (diff) |
Changed a condition in the get method to empty()
Diffstat (limited to 'system')
-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 e29551089..88f1815a7 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 ($value === FALSE OR $value['type'] === FALSE) + if (empty($value['type'])) { return FALSE; } |