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 bbfb471e41
commit 29a9744060

View File

@@ -600,7 +600,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) {