From 177422552665b39e7dac9ab032b441c732bbfab6 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 2 Nov 2008 05:29:36 +0000 Subject: [PATCH] - fix the judge check in the scheduler --- admin/judges_schedulerconfig_check.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/judges_schedulerconfig_check.inc.php b/admin/judges_schedulerconfig_check.inc.php index 6daac02f..3b03f0d0 100644 --- a/admin/judges_schedulerconfig_check.inc.php +++ b/admin/judges_schedulerconfig_check.inc.php @@ -139,9 +139,12 @@ function judges_scheduler_check_judges() echo "Maximum number of judges acceptable: $maxjudges"; echo "
"; - $jq=mysql_query("SELECT COUNT(judges.id) AS num FROM judges,judges_years WHERE complete='yes' AND deleted='no' AND judges_years.year='{$config['FAIRYEAR']}' AND judges_years.judges_id=judges.id"); +/* $jq=mysql_query("SELECT COUNT(judges.id) AS num FROM judges,judges_years WHERE complete='yes' AND deleted='no' AND judges_years.year='{$config['FAIRYEAR']}' AND judges_years.judges_id=judges.id"); $jr=mysql_fetch_object($jq); - $currentjudges=$jr->num; + $currentjudges=$jr->num;*/ + /* FIXME: this his highly inefficient :), but won't be done very often */ + $judges = judges_load_all(); + $currentjudges = count($judges); echo "Current number of registered judges: $currentjudges"; echo "
"; echo "
";