From 6498abb3e3580aa84570378308c544c4ae8630fa Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 14 Nov 2008 07:39:36 +0000 Subject: [PATCH] "adding importing user to an event newly imported via iCal: without that an iCal which did not contain the eGroupware mail address of the user will be inaccessible" --- calendar/inc/class.calendar_ical.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 6ccd7f368d..241170a76b 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -927,9 +927,10 @@ class calendar_ical extends calendar_boupdate } // add ourself to new events as participant - if($cal_id == -1 && !isset($this->supportedFields['participants'])) + if ($cal_id == -1 && (!isset($this->supportedFields['participants']) || + !isset($event['participants'][$GLOBALS['egw_info']['user']['account_id']]))) { - $event['participants'] = array($GLOBALS['egw_info']['user']['account_id'] => 'A'); + $event['participants'][$GLOBALS['egw_info']['user']['account_id']] = 'A'; } // If this is an updated meeting, and the client doesn't support