From adea4b269bd3ad4c7bbdb8fea94ea131e8e99fd8 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 13 Apr 2019 10:15:11 +0100 Subject: [PATCH] Better check --- app/Http/Controllers/Dashboard/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Dashboard/DashboardController.php b/app/Http/Controllers/Dashboard/DashboardController.php index e21f28f3..eec7321a 100644 --- a/app/Http/Controllers/Dashboard/DashboardController.php +++ b/app/Http/Controllers/Dashboard/DashboardController.php @@ -106,7 +106,7 @@ class DashboardController extends Controller $entries = null; if ($feed = $this->feed->latest()) { - if ($feed !== 1) { + if (is_object($feed)) { $entries = array_slice($feed->channel->item, 0, 5); } }