From e86b4662b37ad989059f6c839ffa2f8f1f54157d Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Sat, 17 Apr 2021 23:46:54 +0200 Subject: [PATCH] Fix globe controller up/down partition bug (#12757) --- app/Http/Controllers/Widgets/GlobeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Widgets/GlobeController.php b/app/Http/Controllers/Widgets/GlobeController.php index 1fded15f24..942132e3a3 100644 --- a/app/Http/Controllers/Widgets/GlobeController.php +++ b/app/Http/Controllers/Widgets/GlobeController.php @@ -75,7 +75,7 @@ class GlobeController extends WidgetController if ($data['markers'] == 'devices') { $count = $location->devices->count(); [$devices_down, $devices_up] = $location->devices->partition(function ($device) { - return $device->disabled = 0 && $device->ignore = 0 && $device->status = 0; + return $device->disabled == 0 && $device->ignore == 0 && $device->status == 0; }); $up = $devices_up->count(); $down_items = $devices_down->map(function ($device) {