Skip to content

Commit f736485

Browse files
committed
Fix creating events with old (< unix time) lastoccurence
Closes #20804 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent 7fa941e commit f736485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,7 @@ public function getDenormalizedData($calendarData) {
28142814
'size' => strlen($calendarData),
28152815
'componentType' => $componentType,
28162816
'firstOccurence' => is_null($firstOccurrence) ? null : max(0, $firstOccurrence),
2817-
'lastOccurence' => $lastOccurrence,
2817+
'lastOccurence' => is_null($lastOccurrence) ? null : max(0, $lastOccurrence),
28182818
'uid' => $uid,
28192819
'classification' => $classification
28202820
];

0 commit comments

Comments
 (0)