diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 2974b8eb9bf..a681345d403 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -287,7 +287,7 @@ public function load($loadDetails = false, $noCache = false) { if ((!$mtime) || $simplePie->error()) { $errorMessage = $simplePie->error(); throw new FreshRSS_Feed_Exception( - ($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $url . ']' + ($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $this->url . ']' ); } @@ -302,7 +302,7 @@ public function load($loadDetails = false, $noCache = false) { //HTML to HTML-PRE //ENT_COMPAT except '&' $title = strtr(html_only_entity_decode($simplePie->get_title()), array('<' => '<', '>' => '>', '"' => '"')); - $this->_name($title == '' ? $url : $title); + $this->_name($title == '' ? $this->url : $title); $this->_website(html_only_entity_decode($simplePie->get_link())); $this->_description(html_only_entity_decode($simplePie->get_description()));