forked from science-ation/science-ation
Dont bail out on empty judge teams
This commit is contained in:
parent
2ad2b58233
commit
cfd6fdf637
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user