diff --git a/calendar/edit_status.php b/calendar/edit_status.php index 3617f42408..892ecb8d02 100755 --- a/calendar/edit_status.php +++ b/calendar/edit_status.php @@ -20,16 +20,8 @@ $event = $phpgw->calendar->fetch_event($id); reset($event->participants); - $participating = False; - for($j=0;$jparticipants);$j++) - { - if($event->participants[$j] == $owner) - { - $participating = True; - } - } - if($participating == False) + if(!$event->participants[$owner]) { echo '
The user '.$phpgw->common->grab_owner_name($owner).' is not participating in this event!
'; $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);