From a213650b7191dabc99e6653b32ca06f82734fe50 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 5 Jun 2023 18:33:40 +0200 Subject: [PATCH] fix(caldav): Cast calendar objects id to int when building index Signed-off-by: Christoph Wurst --- apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php b/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php index a38524da9e2b8..a2607ca13c463 100644 --- a/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php +++ b/apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php @@ -107,7 +107,7 @@ private function buildIndex(int $offset, int $stopAt):int { $result = $query->executeQuery(); while ($row = $result->fetch(\PDO::FETCH_ASSOC)) { - $offset = $row['id']; + $offset = (int) $row['id']; if (is_resource($row['calendardata'])) { $row['calendardata'] = stream_get_contents($row['calendardata']); }