diff options
| author | 2013-09-14 18:47:28 +0200 | |
|---|---|---|
| committer | 2013-09-14 18:47:28 +0200 | |
| commit | ae2ad78d38c539c2054155bbabbec15965e3444d (patch) | |
| tree | 203b3e8fbb2f7086a540a9bb69a3f7ee2e8d1fda /app/models/Feed.php | |
| parent | ec448c53a39ea5ca58f16cc5aab92e1576f042d7 (diff) | |
Issue #146 : coding style
Ajout de tabulation dans le if{}
Diffstat (limited to 'app/models/Feed.php')
| -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 ()); |
