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'].")");
|
$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();
|
||||||
|
Loading…
Reference in New Issue
Block a user