From c1184698ee2c5856d80b1e1d355d8f0dabb68d58 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 8 Mar 2025 16:45:11 -0500 Subject: [PATCH] Ward against missing array key in Protocol\Feed - Address https://github.com/friendica/friendica/issues/14647#issuecomment-2667306693 --- src/Protocol/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 6a2f5d42dd..48780e6181 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -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);