More fixes for no participants defined for an event.

This commit is contained in:
skeeter 2001-08-25 02:12:02 +00:00
parent 55affe73c7
commit 967b84fa3a

View File

@ -394,6 +394,8 @@
break;
}
if($l_participants)
{
$parts = $l_participants;
$minparts = min($l_participants);
$part = Array();
@ -421,16 +423,22 @@
}
}
}
else
{
$part = False;
}
}
if($part)
{
@reset($part);
while(list($key,$value) = each($part))
{
$this->so->add_attribute('participants','U',intval($key));
}
}
// reset($participants);
$event = $this->get_cached_event();
if(!@$event['participants'][$l_cal['owner']])
{
$this->so->add_attribute('owner',$minparts);