diff --git a/calendar/inc/hook_email.inc.php b/calendar/inc/hook_email.inc.php index 8ec035b8f5..7205d8596f 100755 --- a/calendar/inc/hook_email.inc.php +++ b/calendar/inc/hook_email.inc.php @@ -36,12 +36,17 @@ echo 'Event ID: '.$id."
\n"; $cal_stream = $phpgw->calendar->open('INBOX',$owner,''); - $event = $phpgw->calendar->fetch_event($cal_stream,$id); + $event = $phpgw->calendar->fetch_event($id); reset($event->participants); + while(list($particpants,$status) = each($event->participants)) + { + $parts[] = $participants; + } + @reset($parts); $freetime = $phpgw->calendar->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $phpgw->calendar->tz_offset); - echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$event->participants); + echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$parts); echo ''; @@ -49,6 +54,7 @@ echo ''; + $phpgw->calendar->fetch_event($id); echo $phpgw->calendar->get_response(); $phpgw_info['server']['app_inc'] = $tmp_app_inc;