summaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index ab9605eb1..83f68ce78 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -38,11 +38,7 @@ class FreshRSS_Entry extends Minz_Model {
return $this->title;
}
public function author () {
- if (is_null ($this->author)) {
- return '';
- } else {
- return $this->author;
- }
+ return $this->author === null ? '' : $this->author;
}
public function content () {
return $this->content;