Fix undeclared variable $rss when parsing atom feed

This commit is contained in:
Kijin Sung 2023-09-25 22:42:41 +09:00
parent 7cac909435
commit 23c5f66479

View file

@ -583,6 +583,7 @@ class content extends WidgetHandler
else if($xml_doc->feed && $xml_doc->feed->attrs->xmlns == 'http://www.w3.org/2005/Atom')
{
// Atom 1.0 spec supported by misol
$rss = new stdClass;
$rss->title = $xml_doc->feed->title->body;
$links = $xml_doc->feed->link;
if(is_array($links))