summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-03-12 12:32:13 +0100
committerMasterklavi <masterklavi@gmail.com>2016-03-12 12:32:13 +0100
commit0abb9777fd45cf87dc3e0e4780ae2292b2822407 (patch)
treed9ae62d9b425cdd120f626df97ab577bd0a551de
parentf26a876acf4cca26329dfbe3d0eee1aa0c05ace0 (diff)
Changed a condition in the get method to empty()
-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 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;
}