From 77d25ab1368d945f709153f7e5dd36c99a39b3a7 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Tue, 26 Mar 2024 14:45:36 -0400 Subject: [PATCH] fix(api): ContextMapper now coerces the row ID to an int for proper comparison Signed-off-by: Elizabeth Danzberger --- lib/Db/ContextMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/ContextMapper.php b/lib/Db/ContextMapper.php index 472c6d3d6..2ffe275e3 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 ($row['id'] == $contextId) { $workArray[] = $row; } }