diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.php index c4058f79ca..76055f2d9b 100644 --- a/app/Http/Controllers/Api/StatuslabelsController.php +++ b/app/Http/Controllers/Api/StatuslabelsController.php @@ -196,6 +196,7 @@ class StatuslabelsController extends Controller { $this->authorize('view', Statuslabel::class); $statuslabels = Statuslabel::withCount('assets')->get(); + $total = Array(); foreach ($statuslabels as $statuslabel) {