diff --git a/admin/judges_schedulerconfig_check.inc.php b/admin/judges_schedulerconfig_check.inc.php index 689e448..70059ff 100644 --- a/admin/judges_schedulerconfig_check.inc.php +++ b/admin/judges_schedulerconfig_check.inc.php @@ -160,8 +160,8 @@ function judges_scheduler_check_judges() echo i18n("Minimum number of judges required: %1",array($minjudges['total']))."
"; foreach($config['languages'] AS $lkey=>$lname) { - $judgelanguagetotal[$lkey]=round($projectlanguagetotal[$lkey]/$projecttotal*$minjudges['total']); - echo "   ".i18n("Minimum number of %1 judges required: %2",array($lname,$judgelanguagetotal[$lkey]))."
"; + $minjudges[$lkey]=round($projectlanguagetotal[$lkey]/$projecttotal*$minjudges['total']); + echo "   ".i18n("Minimum number of %1 judges required: %2",array($lname,$minjudges[$lkey]))."
"; } echo i18n("Maximum number of judges needed: %1",array($maxjudges['total'])); @@ -174,8 +174,7 @@ function judges_scheduler_check_judges() echo "Current number of registered judges: $currentjudges"; echo ""; echo "
"; - echo "
"; - if($currentjudges<$minjudges) { + if($currentjudges<$minjudges['total']) { echo error(i18n("You do not have sufficient number of total judges based on your parameters")); $ok=false; } @@ -187,10 +186,9 @@ function judges_scheduler_check_judges() echo mysql_error(); $jr=mysql_fetch_object($jq); $currentjudges=$jr->num; - echo "".i18n("Current number of registered judges that can judge in %1: %2",array($lname,$currentjudges)).""; + echo "  ".i18n("Current number of registered judges that can judge in %1: %2",array($lname,$currentjudges)).""; echo "
"; - echo "
"; - if($currentjudges<$judgelanguagetotal[$lkey]) { + if($currentjudges<$minjudges[$lkey]) { echo error(i18n("You do not have sufficient number of %1 judges based on your parameters",array($lname))); $ok=false; }