]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Merge pull request #13194 from annando/relay-language
[friendica.git] / src / Protocol / Feed.php
index a43124c69199ff283e634fe8378e2ee00310ace9..fced3526d49ff4e96ea4b6648070a03c2c234f6a 100644 (file)
@@ -308,6 +308,7 @@ class Feed
                        $entry = $entries->item($i);
 
                        $item = array_merge($header, $author);
+                       $body = '';
 
                        $alternate = XML::getFirstAttributes($xpath, $atomns . ":link[@rel='alternate']", $entry);
                        if (!is_object($alternate)) {
@@ -477,7 +478,7 @@ class Feed
 
                        $attachments = [];
 
-                       $enclosures = $xpath->query("enclosure|' . $atomns . ':link[@rel='enclosure']", $entry);
+                       $enclosures = $xpath->query("enclosure|$atomns:link[@rel='enclosure']", $entry);
                        if (!empty($enclosures)) {
                                foreach ($enclosures as $enclosure) {
                                        $href = '';