From bcb9af47caaa791958e7c644df95eec30801b48b Mon Sep 17 00:00:00 2001 From: ufec Date: Sun, 28 Mar 2021 13:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/admin/Auth.php b/app/controller/admin/Auth.php index 52dd221..6a103e5 100644 --- a/app/controller/admin/Auth.php +++ b/app/controller/admin/Auth.php @@ -246,7 +246,7 @@ class Auth extends Base { public function editRule(): Response { $id = $this->request->post('id', 0); $rules = $this->request->post('rules', []); - if ($rules) { + if (is_array($rules)) { $needAdd = []; $has = (new AdminAuthRule())->where(['group_id' => $id])->select(); $has = Tools::buildArrFromObj($has);