From e50922ecf64c25e58802e99703e96c10c0e3a451 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 29 May 2020 14:29:54 +0800 Subject: [PATCH] Update User.php --- app/admin/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index caf9fdb42..738e1afc3 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -134,7 +134,7 @@ class User extends Controller // 账号权限绑定处理 $data['authorize'] = (isset($data['authorize']) && is_array($data['authorize'])) ? join(',', $data['authorize']) : ''; } else { - $data['authorize'] = explode(',', $data['authorize'] ?: ''); + $data['authorize'] = explode(',', $data['authorize'] ?? ''); $this->authorizes = $this->app->db->name('SystemAuth')->where(['status' => '1'])->order('sort desc,id desc')->select()->toArray(); } }