From feafa476b19c6c911aa2c6080cb5b2b0f4c40cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 29 Sep 2021 11:03:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-gii/GiiModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-gii/GiiModel.php b/kiri-gii/GiiModel.php index 5e11f20b..cb8ca250 100644 --- a/kiri-gii/GiiModel.php +++ b/kiri-gii/GiiModel.php @@ -311,7 +311,7 @@ use Database\Model; } if (count($_val) == 1) { $_tmp = ' - [\'' . $_val[0][3] . '\', ' . ($_val[0][1] == 'enum' ? '\'enum\' => ' . ($key) : $key) . ']'; + [\'' . $_val[0][3] . '\', ' . ($_val[0][1] == 'enum' ? '\'enum\' => [' . $key .']' : $key) . ']'; } else { $_tmp = ' [[\'' . implode('\', \'', array_column($_val, 3)) . '\'], ' . $key . ']';