diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 38d0e65e7a..f41389e841 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -472,8 +472,12 @@ class calendar_ical extends calendar_boupdate switch ($icalFieldName) { case 'ATTENDEE': + $attendees = count($event['participants']); foreach ((array)$event['participants'] as $uid => $status) { + calendar_so::split_status($status, $quantity, $role); + if ($attendees == 1 && + $uid == $this->user && $status == 'A') continue; if (!($info = $this->resource_info($uid))) continue; if ($this->log) { @@ -492,7 +496,6 @@ class calendar_ical extends calendar_boupdate { $participantURL = empty($info['email']) ? '' : 'MAILTO:' . $info['email']; } - calendar_so::split_status($status, $quantity, $role); if ($role == 'CHAIR') { $organizerURL = $participantURL;