mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 06:58:41 +00:00
fix(uoj-form-lib.php): Closes #13
This commit is contained in:
commit
410fe66e46
@ -128,7 +128,7 @@ EOD;
|
||||
EOD;
|
||||
$this->add($name, $html,
|
||||
function($opt) use ($options) {
|
||||
return isset($options, $opt) ? '' : "无效选项";
|
||||
return isset($options[$opt]) ? '' : "无效选项";
|
||||
},
|
||||
'always_ok'
|
||||
);
|
||||
@ -165,7 +165,7 @@ EOD;
|
||||
EOD;
|
||||
$this->add($name, $html,
|
||||
function($opt) use ($options) {
|
||||
return isset($options, $opt) ? '' : "无效选项";
|
||||
return isset($options[$opt]) ? '' : "无效选项";
|
||||
},
|
||||
'always_ok'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user