瀏覽代碼

[FeedExpander] Fix Serialization of 'SimpleXMLElement' is not allowed

logmanoriginal 6 年之前
父節點
當前提交
4fb1366aaf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/FeedExpander.php

+ 2 - 2
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;
 				}
 			}