Skip to content

Commit 2768d55

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2861,7 +2861,7 @@ public function getDenormalizedData($calendarData) {
28612861
'size' => strlen($calendarData),
28622862
'componentType' => $componentType,
28632863
'firstOccurence' => is_null($firstOccurrence) ? null : max(0, $firstOccurrence),
2864-
'lastOccurence' => $lastOccurrence,
2864+
'lastOccurence' => is_null($lastOccurrence) ? null : max(0, $lastOccurrence),
28652865
'uid' => $uid,
28662866
'classification' => $classification
28672867
];

0 commit comments

Comments
 (0)