mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Minor optimization in view_event().
This commit is contained in:
parent
5a3e19e6ab
commit
77b9bfb4ee
@ -1573,18 +1573,22 @@ class calendar extends calendar_
|
|||||||
);
|
);
|
||||||
|
|
||||||
reset($event->participants);
|
reset($event->participants);
|
||||||
$participating = False;
|
if($event->participants[$this->owner])
|
||||||
$participate = False;
|
|
||||||
while(list($part,$status) = each($event->participants))
|
|
||||||
{
|
{
|
||||||
if($part == $this->owner)
|
$participating = True;
|
||||||
{
|
}
|
||||||
$participating = True;
|
else
|
||||||
}
|
{
|
||||||
if($part == $phpgw_info['user']['account_id'])
|
$participating = False;
|
||||||
{
|
}
|
||||||
$participate = True;
|
|
||||||
}
|
if($event->participants[$phpgw_info['user']['account_id']])
|
||||||
|
{
|
||||||
|
$participate = True;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$participate = False;
|
||||||
}
|
}
|
||||||
|
|
||||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user