mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix undeclared variable $rss when parsing atom feed
This commit is contained in:
parent
7cac909435
commit
23c5f66479
1 changed files with 11 additions and 10 deletions
|
|
@ -583,6 +583,7 @@ class content extends WidgetHandler
|
||||||
else if($xml_doc->feed && $xml_doc->feed->attrs->xmlns == 'http://www.w3.org/2005/Atom')
|
else if($xml_doc->feed && $xml_doc->feed->attrs->xmlns == 'http://www.w3.org/2005/Atom')
|
||||||
{
|
{
|
||||||
// Atom 1.0 spec supported by misol
|
// Atom 1.0 spec supported by misol
|
||||||
|
$rss = new stdClass;
|
||||||
$rss->title = $xml_doc->feed->title->body;
|
$rss->title = $xml_doc->feed->title->body;
|
||||||
$links = $xml_doc->feed->link;
|
$links = $xml_doc->feed->link;
|
||||||
if(is_array($links))
|
if(is_array($links))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue