From 2b85dc2656feef194421c21c93db190b29a01822 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 29 Jan 2012 18:49:32 +0000 Subject: [PATCH] * Calendar/iCal/CalDAV: if no end(-time) is given in iCal we use the default lenght from user prefs --- calendar/inc/class.calendar_ical.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index ef25e69c9a..c00605379d 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -2998,7 +2998,7 @@ class calendar_ical extends calendar_boupdate // whole day events get one day in calendar_boupdate::save() 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;