]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
PL translation blackout THX waldis
[friendica-addons.git] / fromgplus / fromgplus.php
index 959ad1f7f1a80bf1332e9884258ba6faabfa9fc5..ac433526a020b033b68188c5471225f6b4058a4d 100644 (file)
@@ -341,10 +341,13 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
                                if ($images["full"] != "")
                                        $pagedata["images"][0]["src"] = $images["full"];
 
-                               $quote = trim(fromgplus_html2bbcode($attachment->content));
+                               if (!empty($attachment->content)) {
+                                       $quote = trim(fromgplus_html2bbcode($attachment->content));
+                               }
 
-                               if ($quote != "")
+                               if (!empty($quote)) {
                                        $pagedata["text"] = $quote;
+                               }
 
                                // Add Keywords to page link
                                $data = parseurl_getsiteinfo_cached($pagedata["url"], true);