mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:08:42 +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
163dd8bb30
commit
e9df8f54ab
@ -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