From 2e4fe16f442f83b7613a8b788f78f424cb2c6680 Mon Sep 17 00:00:00 2001 From: F4nniu Date: Tue, 25 Jul 2023 18:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20select=20=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=9C=A8=20php8=20=E7=8E=AF=E5=A2=83=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 7fe625cf5b702570f3dc9091fb78a51d2ee32d26) --- application/admin/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/common.php b/application/admin/common.php index a034f038..3efbc8d1 100755 --- a/application/admin/common.php +++ b/application/admin/common.php @@ -18,8 +18,8 @@ if (!function_exists('build_select')) { */ function build_select($name, $options, $selected = [], $attr = []) { - $options = is_array($options) ? $options : explode(',', $options); - $selected = is_array($selected) ? $selected : explode(',', $selected); + $options = is_array($options) ? $options : explode(',', $options ?? ''); + $selected = is_array($selected) ? $selected : explode(',', $selected ?? ''); return Form::select($name, $options, $selected, $attr); } }