diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index afc8d50084..0b865e1837 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -2640,7 +2640,7 @@ { $details[$key] = $val['data']; } - $details['participants'] = implode("\n",$details['participants']); + $details['participants'] = $details['participants'] ? implode("\n",$details['participants']) : ''; $details['link'] = $GLOBALS['phpgw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uicalendar.view&cal_id='.$event['id']; // if url is only a path, try guessing the rest ;-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index fe4852e229..52cced5cf1 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -1287,10 +1287,9 @@ $this->bo->set_class(True); } // Add participants from matrixview - $participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") ); - for($_f_part=0; $_f_partsession->appsession("participants")) as $part) { - $this->bo->add_attribute('participants','U',$participants[$_f_part]); + if ($part) $this->bo->add_attribute('participants','U',$part); } // Add misc $this->bo->add_attribute('participants','A',$this->bo->owner);