Skip to content

Commit

Permalink
Merge branch 'master' into atom-feed
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Feb 7, 2016
2 parents be16ca6 + 9f8ae4d commit aa8a1bf
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 aa8a1bf

Please sign in to comment.