From 4fb1366aafed5cf6c1e97848142089b01ce04be5 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 10 Aug 2017 13:35:17 +0200 Subject: [PATCH] [FeedExpander] Fix Serialization of 'SimpleXMLElement' is not allowed --- lib/FeedExpander.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index 5dbb0bb..9702ce3 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -102,12 +102,12 @@ abstract class FeedExpander extends BridgeAbstract { if(!isset($content->link)) { $this->uri = ''; } elseif (count($content->link) === 1) { - $this->uri = $content->link[0]['href']; + $this->uri = (string)$content->link[0]['href']; } else { $this->uri = ''; foreach($content->link as $link) { if(strtolower($link['rel']) === 'alternate') { - $this->uri = $link['href']; + $this->uri = (string)$link['href']; break; } }