Skip to content

Commit a213650

Browse files
fix(caldav): Cast calendar objects id to int when building index
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent fec2cc6 commit a213650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function buildIndex(int $offset, int $stopAt):int {
107107

108108
$result = $query->executeQuery();
109109
while ($row = $result->fetch(\PDO::FETCH_ASSOC)) {
110-
$offset = $row['id'];
110+
$offset = (int) $row['id'];
111111
if (is_resource($row['calendardata'])) {
112112
$row['calendardata'] = stream_get_contents($row['calendardata']);
113113
}

0 commit comments

Comments
 (0)