Merge pull request #12578 from inietov/fixes/undefined_variable_total

Fixed Undefined variable `$total`
This commit is contained in:
snipe 2023-02-28 20:50:00 -08:00 committed by GitHub
commit 463ef02fae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,7 @@ class StatuslabelsController extends Controller
{
$this->authorize('view', Statuslabel::class);
$statuslabels = Statuslabel::withCount('assets')->get();
$total = Array();
foreach ($statuslabels as $statuslabel) {