From 3f070538c8f7e8df3ae1b1435279835536e3b52f Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 13 Apr 2019 10:07:42 +0100 Subject: [PATCH] Handle feed failures. Closes #3521 --- app/Http/Controllers/Dashboard/DashboardController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Dashboard/DashboardController.php b/app/Http/Controllers/Dashboard/DashboardController.php index 0c1c55e7..e21f28f3 100644 --- a/app/Http/Controllers/Dashboard/DashboardController.php +++ b/app/Http/Controllers/Dashboard/DashboardController.php @@ -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')