1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-25 17:07:03 +00:00
From vfleaking/uoj@43280f92d6.
Fix wrongly written `isset`s.
This commit is contained in:
TRCYX 2018-07-03 02:27:30 +08:00 committed by Masco Skray
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'
);