aboutsummaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 18:47:28 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 18:47:28 +0200
commitae2ad78d38c539c2054155bbabbec15965e3444d (patch)
tree203b3e8fbb2f7086a540a9bb69a3f7ee2e8d1fda /app/models/Feed.php
parentec448c53a39ea5ca58f16cc5aab92e1576f042d7 (diff)
Issue #146 : coding style
Ajout de tabulation dans le if{}
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php6
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 ());