From bbbd32a02673c8f414904b9995fa71089b417c07 Mon Sep 17 00:00:00 2001 From: james Date: Sun, 30 Mar 2008 16:06:08 +0000 Subject: [PATCH] Dont include deleted judges in the number of available judges check --- admin/judges_schedulerconfig_check.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/judges_schedulerconfig_check.inc.php b/admin/judges_schedulerconfig_check.inc.php index 68e34578..5a0001fd 100644 --- a/admin/judges_schedulerconfig_check.inc.php +++ b/admin/judges_schedulerconfig_check.inc.php @@ -139,7 +139,7 @@ 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 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; echo "Current number of registered judges: $currentjudges";