Browse Source

[fromgplus] Fix potentially missing attachments property in activity

pull/752/head
Hypolite Petovan 4 years ago
parent
commit
375f625e83
  1. 3
      fromgplus/fromgplus.php

3
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 = "";

Loading…
Cancel
Save