diff --git a/admin/judges.inc.php b/admin/judges.inc.php index e3f893d..6144aec 100644 --- a/admin/judges.inc.php +++ b/admin/judges.inc.php @@ -239,6 +239,11 @@ function getJudgingEligibilityCode() { } } +function teamMemberToName($member) +{ + return $member["firstname"] . " " . $member["lastname"]; +} + function judges_load_all() { global $config; diff --git a/admin/judging_score_edit.php b/admin/judging_score_edit.php index ce972ec..666cdd8 100644 --- a/admin/judging_score_edit.php +++ b/admin/judging_score_edit.php @@ -25,10 +25,6 @@ require("../common.inc.php"); require_once("../user.inc.php"); require_once("judges.inc.php"); - function teamMemberToName($member) - { - return $member["firstname"] . " " . $member["lastname"]; - } user_auth_required('committee', 'admin'); send_header("Judging Score Entry - Update", array('Committee Main' => 'committee_main.php', @@ -89,8 +85,7 @@ $q=mysql_query("SELECT * FROM projectdivisions WHERE year='$year' ORDER BY id"); $i = 1; while($r=mysql_fetch_object($q)) { $team=getJudgingTeam($r->judges_teams_id); - $teamMembers=$team['members']; - $teamNames=array_map("teamMemberToName", $teamMembers); + $teamNames=array_map("teamMemberToName", $team['members']); echo "