fix bug
This commit is contained in:
@@ -83,6 +83,7 @@ class Article
|
|||||||
if(!empty($info['imgs'])) {
|
if(!empty($info['imgs'])) {
|
||||||
$info['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $info['imgs']), true);
|
$info['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $info['imgs']), true);
|
||||||
}
|
}
|
||||||
|
if(empty($info['imgs'])) $info['imgs'] = [];
|
||||||
$info['other_list'] = [];
|
$info['other_list'] = [];
|
||||||
$lists = Db::name('app_article')
|
$lists = Db::name('app_article')
|
||||||
->where("userid",$info["userid"])
|
->where("userid",$info["userid"])
|
||||||
|
|||||||
Reference in New Issue
Block a user