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

This commit is contained in:
Andrew Nicols
2018-08-02 10:57:53 +08:00
parent 6e8235c7d3
commit ed3ff719f2
+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;
}