This will check to see if an event has any participants.

This commit is contained in:
skeeter 2001-11-07 00:29:42 +00:00
parent 45b31e3e14
commit 6c5031943a

View File

@ -764,7 +764,7 @@
@reset($event['participants']);
$uim = False;
$security_equals = $GLOBALS['phpgw']->accounts->membership($user);
while(!$uim && $security_equals && list($participant,$status) = each($event['participants']))
while(!$uim && $event['participants'] && $security_equals && list($participant,$status) = each($event['participants']))
{
if($GLOBALS['phpgw']->accounts->get_type($participant) == 'g')
{