]> git.mxchange.org Git - friendica-addons.git/commitdiff
[fromgplus] Fix potentially missing attachments property in activity
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 13:27:44 +0000 (09:27 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Oct 2018 13:27:44 +0000 (09:27 -0400)
fromgplus/fromgplus.php

index 89139ed1c422421ca314503f4cf3089afcafdc26..9dc48753f69aa8ac9c534cf6393a6d319c413eb3 100644 (file)
@@ -495,8 +495,9 @@ function fromgplus_fetch($a, $uid) {
                                case "note":
                                        $post = fromgplus_html2bbcode($item->object->content);
 
-                                       if (is_array($item->object->attachments))
+                                       if (!empty($item->object->attachments)) {
                                                $post .= fromgplus_handleattachments($a, $uid, $item, $item->object->content, false);
+                                       }
 
                                        $coord = "";
                                        $location = "";