Minor optimization in view_event().

This commit is contained in:
skeeter 2001-06-17 16:41:00 +00:00
parent 5a3e19e6ab
commit 77b9bfb4ee

View File

@ -1573,18 +1573,22 @@ class calendar extends calendar_
);
reset($event->participants);
$participating = False;
$participate = False;
while(list($part,$status) = each($event->participants))
{
if($part == $this->owner)
if($event->participants[$this->owner])
{
$participating = True;
}
if($part == $phpgw_info['user']['account_id'])
else
{
$participating = False;
}
if($event->participants[$phpgw_info['user']['account_id']])
{
$participate = True;
}
else
{
$participate = False;
}
$p = CreateObject('phpgwapi.Template',$this->template_dir);