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

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/38648/head
Christoph Wurst 3 years ago
parent fec2cc69f4
commit a213650b71
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
  1. 2
      apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php

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

Loading…
Cancel
Save