aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/caldav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-09 18:13:34 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-10 09:20:53 +0100
commit6133253a2c95a5ca524aecf1fdeb85ab4d479d49 (patch)
treedbf32746b8c27ab325a393a9ef16ee042d342d4f /apps/dav/lib/caldav
parentbc434b252c4918aeb02db5725238007c766b9e35 (diff)
downloadnextcloud-server-6133253a2c95a5ca524aecf1fdeb85ab4d479d49.tar.gz
nextcloud-server-6133253a2c95a5ca524aecf1fdeb85ab4d479d49.zip
fixes #23004
Diffstat (limited to 'apps/dav/lib/caldav')
-rw-r--r--apps/dav/lib/caldav/caldavbackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/caldav/caldavbackend.php b/apps/dav/lib/caldav/caldavbackend.php
index e9a9cb2378b..fdfc8c399ed 100644
--- a/apps/dav/lib/caldav/caldavbackend.php
+++ b/apps/dav/lib/caldav/caldavbackend.php
@@ -1333,7 +1333,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'etag' => md5($calendarData),
'size' => strlen($calendarData),
'componentType' => $componentType,
- 'firstOccurence' => $firstOccurence,
+ 'firstOccurence' => is_null($firstOccurence) ? null : max(0, $firstOccurence),
'lastOccurence' => $lastOccurence,
'uid' => $uid,
];