fix(caldav): Cast calendar objects id to int when building index

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-06-05 18:33:40 +02:00
parent fec2cc69f4
commit a213650b71
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View 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']);
}