From 3832e6460020042e3c282da9791767852c4bf0b5 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 25 Feb 2010 21:23:11 +0000 Subject: [PATCH] Filter by team id so we don't print all teams --- admin/reports_judges.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/reports_judges.inc.php b/admin/reports_judges.inc.php index f53c0f07..a00e97af 100644 --- a/admin/reports_judges.inc.php +++ b/admin/reports_judges.inc.php @@ -172,7 +172,8 @@ function report_judges_team_members(&$report, $field, $text) $judges_teams_id = $text; $q = mysql_query("SELECT * FROM judges_teams_link LEFT JOIN users ON judges_teams_link.users_id=users.id - WHERE judges_teams_link.year='$year'"); + WHERE judges_teams_link.year='$year' + AND judges_teams_link.judges_teams_id='$judges_teams_id'"); $ret = ''; while( ($m = mysql_fetch_assoc($q))) { $add = false;