]> git.mxchange.org Git - friendica.git/commitdiff
Ward against missing array key in Protocol\Feed
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Mar 2025 21:45:11 +0000 (16:45 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 11 Mar 2025 13:15:42 +0000 (09:15 -0400)
- Address https://github.com/friendica/friendica/issues/14647#issuecomment-2667306693

src/Protocol/Feed.php

index 6a2f5d42ddf4428c099a5d48ed64750928e6304f..48780e6181d99171c50adb55e69de9f4be375ab7 100644 (file)
@@ -335,7 +335,7 @@ class Feed
 
        private static function getTitleFromItemOrEntry(array $item, DOMXPath $xpath, string $atomns, ?DOMNode $entry): string
        {
-               $title = (string) $item['title'];
+               $title = (string) ($item['title'] ?? '');
 
                if (empty($title)) {
                        $title = XML::getFirstNodeValue($xpath, $atomns . ':title/text()', $entry);