Merge branch 'MDL-63050-34' of git://github.com/andrewnicols/moodle into MOODLE_34_STABLE
This commit is contained in:
Vendored
+1
-1
@@ -325,7 +325,7 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
|
||||
* @return bool True if the key exists, false if it does not.
|
||||
*/
|
||||
public function has($key) {
|
||||
return $this->redis->hExists($this->hash, $key);
|
||||
return !empty($this->redis->hExists($this->hash, $key));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -396,7 +396,7 @@ class redis extends handler {
|
||||
}
|
||||
|
||||
try {
|
||||
return $this->connection->exists($sid);
|
||||
return !empty($this->connection->exists($sid));
|
||||
} catch (RedisException $e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user