Merge branch 'MDL-63050-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Jake Dallimore 2018-08-15 10:59:37 +08:00
commit 71926adb0d
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
/**

View File

@ -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;
}