Ward against missing array key in Protocol\Feed

- Address https://github.com/friendica/friendica/issues/14647#issuecomment-2667306693
This commit is contained in:
Hypolite Petovan 2025-03-08 16:45:11 -05:00
parent 64d85ad86a
commit c1184698ee

View 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);