fix(web/problem/manage): difficulty config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-12-05 17:49:39 +08:00
parent c0484d55a5
commit c47f943257
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -65,7 +65,7 @@ $problem_editor->runAtServer();
$difficulty_form = new UOJForm('difficulty');
$difficulty_form->addSelect('difficulty', [
'options' => array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty),
'options' => [-1 => '暂无评定'] + array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty),
'default_value' => UOJProblem::info('difficulty'),
]);
$difficulty_form->handle = function () {
@ -183,4 +183,4 @@ $difficulty_form->runAtServer();
</div>
<?php echoUOJPageFooter() ?>
<?php echoUOJPageFooter() ?>