diff options
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/Feed.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php index 3601ed1f8..e53df16a1 100644 --- a/app/models/Feed.php +++ b/app/models/Feed.php @@ -200,10 +200,12 @@ class Feed extends Model { } $this->_url ($subscribe_url); } + if (empty($this->name)) { // May come from OPML - $title = $feed->get_title (); - $this->_name (!is_null ($title) ? $title : $this->url); + $title = $feed->get_title (); + $this->_name (!is_null ($title) ? $title : $this->url); } + $this->_website ($feed->get_link ()); $this->_description ($feed->get_description ()); |
