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