mirror of
https://github.com/friendica/friendica
synced 2025-03-14 07:48:27 +00:00
Ward against missing array key in Protocol\Feed
- Address https://github.com/friendica/friendica/issues/14647#issuecomment-2667306693
This commit is contained in:
parent
64d85ad86a
commit
c1184698ee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue