Skip to content

Commit

Permalink
MDL-63050 redis: Make session check compatible with Redis 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 2, 2018
1 parent cf31c73 commit 663c41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/session/redis.php
Expand Up @@ -396,7 +396,7 @@ public function session_exists($sid) {
}

try {
return $this->connection->exists($sid);
return !empty($this->connection->exists($sid));
} catch (RedisException $e) {
return false;
}
Expand Down

0 comments on commit 663c41b

Please sign in to comment.