From: Hypolite Petovan Date: Sat, 8 Mar 2025 21:45:11 +0000 (-0500) Subject: Ward against missing array key in Protocol\Feed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1184698ee2c5856d80b1e1d355d8f0dabb68d58;p=friendica.git Ward against missing array key in Protocol\Feed - Address https://github.com/friendica/friendica/issues/14647#issuecomment-2667306693 --- 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);