Only consider judges teams from the current fair year when calculating what judging team number to start numbering at

This commit is contained in:
james 2008-03-29 19:02:43 +00:00
parent bc3727b5c1
commit 572242bc14

View File

@ -573,7 +573,7 @@ function pr_judge(&$jt, $jid)
/* Find the maximum judging team number */
$q = mysql_query("SELECT MAX(num) as max FROM judges_teams");
$q = mysql_query("SELECT MAX(num) as max FROM judges_teams WHERE year='{$config['FAIRYEAR']}'");
$r = mysql_fetch_object($q);
$max_jteam_num = $r->max;