Skip to content

Commit

Permalink
fix(DB): fetch pageId as int
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz authored and backportbot[bot] committed May 13, 2024
1 parent 6602295 commit 1752201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Db/PageMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public function __construct(IDBConnection $db) {
parent::__construct($db, $this->table, Page::class);
}

/**
* @return int[]
*/
public function getPageIdsForContext(int $contextId): array {
$qb = $this->db->getQueryBuilder();

Expand All @@ -25,7 +28,7 @@ public function getPageIdsForContext(int $contextId): array {
$pageIds = [];
while ($row = $result->fetch()
) {
$pageIds[] = $row['id'];
$pageIds[] = (int)$row['id'];
}
return $pageIds;
}
Expand Down

0 comments on commit 1752201

Please sign in to comment.