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'].")"); $rep->heading($team['name']." (".$team['num'].")");
$memberlist=""; $memberlist="";
foreach($team['members'] AS $member) if(count($team['members']))
{ {
$memberlist.=$member['firstname']." ".$member['lastname']; foreach($team['members'] AS $member)
if($member['captain']=="yes") {
$memberlist.="*"; $memberlist.=$member['firstname']." ".$member['lastname'];
$memberlist.=", "; if($member['captain']=="yes")
$memberlist.="*";
$memberlist.=", ";
}
$memberlist=substr($memberlist,0,-2);
} }
$memberlist=substr($memberlist,0,-2);
$rep->addText($memberlist); $rep->addText($memberlist);
$rep->nextLine(); $rep->nextLine();