Ensure boardId is an integer

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow
2023-06-06 10:58:20 +02:00
committed by Julius Härtl
parent afcccabd22
commit b53d6a3fe5

View File

@@ -601,7 +601,7 @@ class CardMapper extends QBMapper implements IPermissionMapper {
}
$this->cache->set('findBoardId:' . $id, $result);
}
return $result !== false ? $result : null;
return $result !== false ? (int) $result : null;
}
public function mapOwner(Card &$card) {