dever %!s(int64=6) %!d(string=hai) anos
pai
achega
315018df69
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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];
                     }