Avoid fatal errors in case the event object has invalid date properties
This commit is contained in:
parent
cbbcba9a2d
commit
b0e06ccdb7
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class kolab_date_recurrence
|
|||
}
|
||||
|
||||
// determine a reasonable end date if none given
|
||||
if (!$event['recurrence']['COUNT']) {
|
||||
if (!$event['recurrence']['COUNT'] && $event['start'] instanceof DateTime) {
|
||||
switch ($event['recurrence']['FREQ']) {
|
||||
case 'YEARLY': $intvl = 'P100Y'; break;
|
||||
case 'MONTHLY': $intvl = 'P20Y'; break;
|
||||
|
|
Loading…
Add table
Reference in a new issue