diff --git a/uoj/1/app/libs/uoj-form-lib.php b/uoj/1/app/libs/uoj-form-lib.php index 931b08e..9786d50 100644 --- a/uoj/1/app/libs/uoj-form-lib.php +++ b/uoj/1/app/libs/uoj-form-lib.php @@ -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' );