From 93bf23671dea1e5a0f7d39c1c24fce9ce0c96f8e Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 14 Nov 2016 18:15:54 +0000 Subject: [PATCH] Use the constant --- app/Integrations/Core/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Integrations/Core/System.php b/app/Integrations/Core/System.php index ae5fb293..29a117a4 100644 --- a/app/Integrations/Core/System.php +++ b/app/Integrations/Core/System.php @@ -50,7 +50,7 @@ class System implements SystemContract } elseif ($enabledScope->notStatus(1)->count() === 0) { // If all our components are ok, do we have any non-fixed incidents? $incidents = Incident::orderBy('occurred_at', 'desc')->get()->filter(function ($incident) { - return $incident->status > 0; + return $incident->status !== Incident::FIXED; }); $incidentCount = $incidents->count(); $unresolvedCount = $incidents->filter(function ($incident) {