mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-29 11:08:53 +01:00
Fix the view composer, don't poorly check incident statuses
This commit is contained in:
parent
410843516b
commit
4d967c08bd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user