diff --git a/lib/Db/ContextMapper.php b/lib/Db/ContextMapper.php index 472c6d3d6..91b6ae44a 100644 --- a/lib/Db/ContextMapper.php +++ b/lib/Db/ContextMapper.php @@ -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 ((int) $row['id'] === $contextId) { $workArray[] = $row; } } @@ -188,7 +188,7 @@ public function findForNavBar(string $userId): array { foreach ($contextIds as $contextId) { $workArray = []; foreach ($r as $row) { - if ($row['id'] === $contextId) { + if ((int) $row['id'] === $contextId) { $workArray[] = $row; } }