Dont bail out on empty judge teams

This commit is contained in:
james 2006-03-16 20:15:50 +00:00
parent 2ad2b58233
commit cfd6fdf637

View File

@ -68,14 +68,17 @@
$rep->heading($team['name']." (".$team['num'].")");
$memberlist="";
foreach($team['members'] AS $member)
if(count($team['members']))
{
$memberlist.=$member['firstname']." ".$member['lastname'];
if($member['captain']=="yes")
$memberlist.="*";
$memberlist.=", ";
foreach($team['members'] AS $member)
{
$memberlist.=$member['firstname']." ".$member['lastname'];
if($member['captain']=="yes")
$memberlist.="*";
$memberlist.=", ";
}
$memberlist=substr($memberlist,0,-2);
}
$memberlist=substr($memberlist,0,-2);
$rep->addText($memberlist);
$rep->nextLine();