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

View File

@ -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'
);