aboutsummaryrefslogtreecommitdiff
path: root/src/admin/problem.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/admin/problem.php')
-rw-r--r--src/admin/problem.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/admin/problem.php b/src/admin/problem.php
index 9024544..957c9da 100644
--- a/src/admin/problem.php
+++ b/src/admin/problem.php
@@ -231,6 +231,9 @@ for ($i=0; $i<count($prob); $i++) {
$param['fake'] = 'f';
$param['colorname'] = trim($_POST["colorname" . $prob[$i]['number']]);
$param['color'] = trim($_POST["color" . $prob[$i]['number']]);
+ if (isset ($prob[$i]['autojudge'])) {
+ $param['autojudge'] = ((integer) $prob[$i]['autojudge']);
+ }
DBNewProblem ($_SESSION["usertable"]["contestnumber"], $param);
}
ForceLoad("problem.php");