Use the constant

This commit is contained in:
James Brooks
2016-11-14 18:15:54 +00:00
parent 1f00ea1e9b
commit 93bf23671d

View File

@@ -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) {