Skip to content

Commit

Permalink
feed when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Feb 7, 2016
1 parent 5a6dff8 commit 9f8ae4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function feed()
}
$feed->link = url()->route(config('app.locale').'.news.feed');
$feed->setDateFormat('datetime'); // 'datetime', 'timestamp' or 'carbon'
$feed->pubdate = $models[0]->created_at;
$feed->pubdate = isset($models[0]) and $models[0]->created_at;
$feed->lang = config('app.locale');
$feed->setShortening(true); // true or false
$feed->setTextLimit(100); // maximum length of description text
Expand Down

0 comments on commit 9f8ae4d

Please sign in to comment.