From 29e99be073b1d97747709dd6577a27fa8cdf34c8 Mon Sep 17 00:00:00 2001 From: TRCYX <2915154295@qq.com> Date: Tue, 3 Jul 2018 02:27:30 +0800 Subject: [PATCH] fix(uoj-form-lib.php): UniversalOJ/UOJ-System#13 From vfleaking/uoj@43280f92d6ee90e2250f9133772e3880ea10b0be. Fix wrongly written `isset`s. --- uoj/1/app/libs/uoj-form-lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' );