Skip to content

Commit

Permalink
fix(api): ContextMapper now coerces the row ID to an int for proper c…
Browse files Browse the repository at this point in the history
…omparison

Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Mar 26, 2024
1 parent 6ef7e56 commit 77d25ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/ContextMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function findAll(?string $userId = null): array {
foreach ($contextIds as $contextId) {
$workArray = [];
foreach ($r as $row) {
if ($row['id'] === $contextId) {
if ($row['id'] == $contextId) {
$workArray[] = $row;
}
}
Expand Down

0 comments on commit 77d25ab

Please sign in to comment.