Skip to content

Commit

Permalink
Merge pull request #152 from ilnytskyi/ilnytskyi-patch-1
Browse files Browse the repository at this point in the history
Fix when get Object(Credis_Client) to decode
  • Loading branch information
colinmollenhour committed Jun 4, 2020
2 parents 39b3257 + d58327f commit 1132d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cm/Cache/Backend/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public function load($id, $doNotTestCacheValidity = false)
} else {
$data = $this->_redis->hGet(self::PREFIX_KEY.$id, self::FIELD_DATA);
}
if ($data === NULL) {
if ($data === NULL || is_object($data)) {
return FALSE;
}

Expand Down

0 comments on commit 1132d90

Please sign in to comment.