From 167a626e0dd2b22033efecd7d56ddb32357bf2f3 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 16:49:58 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controller/Article.php b/app/controller/Article.php index a9df8e1..b827c2c 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -83,6 +83,7 @@ class Article if(!empty($info['imgs'])) { $info['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $info['imgs']), true); } + if(empty($info['imgs'])) $info['imgs'] = []; $info['other_list'] = []; $lists = Db::name('app_article') ->where("userid",$info["userid"])