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 backportbot-nextcloud[bot]
parent 82eb262433
commit 313b5b0e15

View File

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