X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDFRN.php;h=e6524de965e418f2cf9315cd9bb9abfffd2cc414;hb=f40c57fc204ff47a3cf9f7eab75e8a635566275c;hp=5e6c733e211068c5be3bb85b6257226bfe5c3072;hpb=a6786ac81402ca58a9deef5719f1b31640fe1eb4;p=friendica.git diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 5e6c733e21..e6524de965 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2513,7 +2513,7 @@ class DFRN $notice_info = $xpath->query("statusnet:notice_info", $entry); if ($notice_info && ($notice_info->length > 0)) { - foreach ($notice_info->item[0]->attributes as $attributes) { + foreach ($notice_info->item(0)->attributes as $attributes) { if ($attributes->name == "source") { $item["app"] = strip_tags($attributes->textContent); } @@ -2588,8 +2588,8 @@ class DFRN $item['conversation-uri'] = XML::getFirstNodeValue($xpath, 'ostatus:conversation/text()', $entry); $conv = $xpath->query('ostatus:conversation', $entry); - if (is_object($conv->item[0])) { - foreach ($conv->item[0]->attributes as $attributes) { + if (is_object($conv->item(0))) { + foreach ($conv->item(0)->attributes as $attributes) { if ($attributes->name == "ref") { $item['conversation-uri'] = $attributes->textContent; } @@ -2603,8 +2603,8 @@ class DFRN $item["parent-uri"] = $item["uri"]; $inreplyto = $xpath->query("thr:in-reply-to", $entry); - if (is_object($inreplyto->item[0])) { - foreach ($inreplyto->item[0]->attributes as $attributes) { + if (is_object($inreplyto->item(0))) { + foreach ($inreplyto->item(0)->attributes as $attributes) { if ($attributes->name == "ref") { $item["parent-uri"] = $attributes->textContent; }