From 4d967c08bd089d336133215cb1c0d09b28353ebb Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 19 Nov 2014 13:36:45 +0000 Subject: [PATCH] Fix the view composer, don't poorly check incident statuses --- app/view-composers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/view-composers.php b/app/view-composers.php index 78bccc6c9..e83a1f26d 100644 --- a/app/view-composers.php +++ b/app/view-composers.php @@ -7,7 +7,7 @@ ->groupBy('status') ->orderBy('status', 'desc'); - if ($incidents->count() === 0 || (int) $incidents->first()->status === 4) { + if ($incidents->get()->count() === 1 || (int) $incidents->first()->status === 4) { $status = 'success'; $message = 'All systems are functional.'; } else {