MDL-63050 redis: Make session check compatible with Redis 4.0

This commit is contained in:
Andrew Nicols
2018-08-02 11:00:42 +08:00
parent 2d6cb43e1e
commit 8058d53f6a
+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;
}