From 375f625e837901c35169c8c3295be9c53f4f3ce8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 14 Oct 2018 09:27:44 -0400 Subject: [PATCH] [fromgplus] Fix potentially missing attachments property in activity --- fromgplus/fromgplus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index 89139ed1..9dc48753 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -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 = "";