aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/CalDavBackend.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-04-01 17:31:37 +0200
committerAnna (Rebase PR Action) <miaulalala@users.noreply.github.com>2023-06-27 11:16:47 +0000
commit3886b00a333199dae86a39dc49c7e8180283149a (patch)
treeef1bcc82496bdf458408ef9078f1bdba2dbe7ee3 /apps/dav/lib/CalDAV/CalDavBackend.php
parent06c99e02563ba138e490a84145825ba8c7f0cdc7 (diff)
downloadnextcloud-server-3886b00a333199dae86a39dc49c7e8180283149a.tar.gz
nextcloud-server-3886b00a333199dae86a39dc49c7e8180283149a.zip
Fix creating events with old (< unix time) lastoccurence
Closes #20804 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/CalDAV/CalDavBackend.php')
-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 94fe9acf356..fc23b6545e5 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -2814,7 +2814,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'size' => strlen($calendarData),
'componentType' => $componentType,
'firstOccurence' => is_null($firstOccurrence) ? null : max(0, $firstOccurrence),
- 'lastOccurence' => $lastOccurrence,
+ 'lastOccurence' => is_null($lastOccurrence) ? null : max(0, $lastOccurrence),
'uid' => $uid,
'classification' => $classification
];