mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 14:47:35 +02:00
[FeedExpander] Fix Serialization of 'SimpleXMLElement' is not allowed
This commit is contained in:
@@ -102,12 +102,12 @@ abstract class FeedExpander extends BridgeAbstract {
|
|||||||
if(!isset($content->link)) {
|
if(!isset($content->link)) {
|
||||||
$this->uri = '';
|
$this->uri = '';
|
||||||
} elseif (count($content->link) === 1) {
|
} elseif (count($content->link) === 1) {
|
||||||
$this->uri = $content->link[0]['href'];
|
$this->uri = (string)$content->link[0]['href'];
|
||||||
} else {
|
} else {
|
||||||
$this->uri = '';
|
$this->uri = '';
|
||||||
foreach($content->link as $link) {
|
foreach($content->link as $link) {
|
||||||
if(strtolower($link['rel']) === 'alternate') {
|
if(strtolower($link['rel']) === 'alternate') {
|
||||||
$this->uri = $link['href'];
|
$this->uri = (string)$link['href'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user