A free open source IT asset/license management system
Declare variable as an empty array
Ivan Nieto Vivanco1be0a8d9116e
diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.phpindex 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) {