s9y / Serendipity

A PHP blog software
https://s9y.org
BSD 3-Clause "New" or "Revised" License
209 stars 88 forks source link

serendipity_event_freetag: uninitialized array #858

Open bauigel opened 4 weeks ago

bauigel commented 4 weeks ago

Seems there is an uninitialized array in the code which breaks the rss-feed

Around line 693

$eventData['display_dat'] .= $this->getFeedXmlForTags('category', $eventData['properties']['freetag_tags'] ?? []);

Changed it to following (thanks to ChatGPT) and it seems to work (for me)

$eventData['display_dat'] = ($eventData['display_dat'] ?? '') . $this->getFeedXmlForTags('category', $eventData['properties']['freetag_tags'] ?? []);