]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(caldav): Cast calendar objects id to int when building index 38677/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 5 Jun 2023 16:33:40 +0000 (18:33 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 6 Jun 2023 18:43:13 +0000 (18:43 +0000)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php

index a38524da9e2b822e9bab9f179bc14c7272259a8f..a2607ca13c4636feafabb8f8f90de5dc3c84ff79 100644 (file)
@@ -107,7 +107,7 @@ class BuildReminderIndexBackgroundJob extends QueuedJob {
 
                $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']);
                        }