Skip to content

Commit

Permalink
fix(api): ContextMapper now casts the row ID to int to fix compatibil…
Browse files Browse the repository at this point in the history
…ity with sqlite database

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
  • Loading branch information
elzody committed Mar 27, 2024
1 parent 6ef7e56 commit 99ca0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 ((int) $row['id'] === $contextId) {
$workArray[] = $row;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 99ca0db

Please sign in to comment.