Handle feed failures. Closes #3521

This commit is contained in:
James Brooks 2019-04-13 10:07:42 +01:00
parent 3285aabb66
commit 3f070538c8

View File

@ -106,7 +106,9 @@ class DashboardController extends Controller
$entries = null;
if ($feed = $this->feed->latest()) {
$entries = array_slice($feed->channel->item, 0, 5);
if ($feed !== 1) {
$entries = array_slice($feed->channel->item, 0, 5);
}
}
return View::make('dashboard.index')