mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 13:38:41 +00:00
fix(uoj-form-lib.php): UniversalOJ/UOJ-System#13
From vfleaking/uoj@43280f92d6. Fix wrongly written `isset`s.
This commit is contained in:
parent
7dbd73552c
commit
29e99be073
@ -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