diff --git a/confirmed_participants.php b/confirmed_participants.php
index b78c3b8c..e74c13a7 100644
--- a/confirmed_participants.php
+++ b/confirmed_participants.php
@@ -133,12 +133,21 @@
$studnum=1;
$schools="";
$students="";
+ $sameschools=true;
+ $lastschool="";
while($studentinfo=mysql_fetch_object($sq))
{
$students.="$studentinfo->firstname $studentinfo->lastname
";
$schools.="$studentinfo->school
";
+ if($lastschool)
+ {
+ if($lastschool!=$studentinfo->school)
+ $sameschools=false;
+ }
+ $lastschool=$studentinfo->school;
$stats_totalstudents++;
}
+ if($sameschools) $schools=$lastschool;
echo "