Index: class.bocalendar.inc.php =================================================================== RCS file: /cvsroot/phpgroupware/calendar/inc/class.bocalendar.inc.php,v retrieving revision 1.71.2.33.2.22 diff -u -r1.71.2.33.2.22 class.bocalendar.inc.php --- class.bocalendar.inc.php 6 Apr 2004 09:51:49 -0000 1.71.2.33.2.22 +++ class.bocalendar.inc.php 30 Apr 2004 08:39:42 -0000 @@ -1317,7 +1317,7 @@ $user = $GLOBALS['phpgw_info']['user']['account_id']; $grants = $this->grants[$owner]; - if (is_array($event) && $needed == PHPGW_ACL_READ) + if (is_array($event) && is_array($event['participants']) && ($needed == PHPGW_ACL_READ)) { // Check if the $user is one of the participants or has a read-grant from one of them // @@ -2795,11 +2795,14 @@ } $participants = array(); - foreach($event['participants'] as $user => $short_status) + if(is_array($event['participants']) == true) { - if($GLOBALS['phpgw']->accounts->exists($user)) + foreach($event['participants'] as $user => $short_status) { - $participants[$user] = $GLOBALS['phpgw']->common->grab_owner_name($user).' ('.$this->get_long_status($short_status).')'; + if($GLOBALS['phpgw']->accounts->exists($user)) + { + $participants[$user] = $GLOBALS['phpgw']->common->grab_owner_name($user).' ('.$this->get_long_status($short_status).')'; + } } } $var['participants'] = Array(