MDL-63050 redis: Make session check compatible with Redis 4.0
This commit is contained in:
@@ -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