Fixes for current calendar structure.

This commit is contained in:
skeeter 2001-06-04 03:28:02 +00:00
parent 5f539b912a
commit 3d4251a1c7

View File

@ -20,16 +20,8 @@
$event = $phpgw->calendar->fetch_event($id);
reset($event->participants);
$participating = False;
for($j=0;$j<count($event->participants);$j++)
{
if($event->participants[$j] == $owner)
{
$participating = True;
}
}
if($participating == False)
if(!$event->participants[$owner])
{
echo '<center>The user '.$phpgw->common->grab_owner_name($owner).' is not participating in this event!</center>';
$phpgw->common->footer();
@ -43,8 +35,6 @@
$phpgw->common->phpgw_exit();
}
reset($event->participants);
$freetime = $phpgw->calendar->datetime->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $phpgw->calendar->datetime->tz_offset);
echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$event->participants);