From 1be0a8d9116ed2a666a9057294d6f374001510a6 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Tue, 28 Feb 2023 10:22:49 -0600 Subject: [PATCH] Declare variable as an empty array --- app/Http/Controllers/Api/StatuslabelsController.php | 1 + 1 file changed, 1 insertion(+) 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) {