* Calendar/iCal/CalDAV: if no end(-time) is given in iCal we use the default lenght from user prefs

This commit is contained in:
Ralf Becker 2012-01-29 18:41:46 +00:00
parent a596c9c89a
commit f293f8edb8

View File

@ -2998,7 +2998,7 @@ class calendar_ical extends calendar_boupdate
// whole day events get one day in calendar_boupdate::save() // whole day events get one day in calendar_boupdate::save()
if (!isset($event['end'])) if (!isset($event['end']))
{ {
$event['end'] = 60 * $this->cal_prefs['defaultlength']; $event['end'] = $event['start'] + 60 * $this->cal_prefs['defaultlength'];
} }
if ($this->calendarOwner) $event['owner'] = $this->calendarOwner; if ($this->calendarOwner) $event['owner'] = $this->calendarOwner;