diff --git a/lib/Db/SessionMapper.php b/lib/Db/SessionMapper.php index 186f81929..15edd12e7 100644 --- a/lib/Db/SessionMapper.php +++ b/lib/Db/SessionMapper.php @@ -45,8 +45,7 @@ class SessionMapper extends QBMapper { $qb->select('id', 'board_id', 'last_contact', 'user_id', 'token') ->from($this->getTableName()) ->where($qb->expr()->eq('board_id', $qb->createNamedParameter($boardId))) - ->andWhere($qb->expr()->gt('last_contact', $qb->createNamedParameter(time() - SessionService::SESSION_VALID_TIME))) - ->executeQuery(); + ->andWhere($qb->expr()->gt('last_contact', $qb->createNamedParameter(time() - SessionService::SESSION_VALID_TIME))); return $this->findEntities($qb); }