Merge branch 'MDL-63050-34' of git://github.com/andrewnicols/moodle into MOODLE_34_STABLE

This commit is contained in:
Jake Dallimore
2018-08-15 11:00:32 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
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));
}
/**
+1 -1
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;
}