dever 6 年 前
コミット
315018df69
1 ファイル変更6 行追加1 行削除
  1. 6 1
      content/lib/Article.php

+ 6 - 1
content/lib/Article.php

@@ -61,7 +61,12 @@ class Article
                     $appid = $temp[1];
                     $path = $temp[2];
 
-                    $appinfo = Dever::db('content/applet')->one(array('appid' => $appid));
+                    if ($appid) {
+                        $appinfo = Dever::db('content/applet')->one(array('appid' => $appid));
+                    } else {
+                        $appinfo['name'] = '';
+                    }
+                    
                     if (isset($temp[3]) && $temp[3]) {
                         $appinfo['link'] = $temp[3];
                     }