[fromgplus] Fix potentially missing attachments property in activity

This commit is contained in:
Hypolite Petovan 2018-10-14 09:27:44 -04:00
parent b040bee1d0
commit 375f625e83

View file

@ -495,8 +495,9 @@ function fromgplus_fetch($a, $uid) {
case "note": case "note":
$post = fromgplus_html2bbcode($item->object->content); $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); $post .= fromgplus_handleattachments($a, $uid, $item, $item->object->content, false);
}
$coord = ""; $coord = "";
$location = ""; $location = "";