From 53ad1b5110e22bdbb57960aec7d29b824dda7b5b Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 21 Aug 2016 18:00:24 +0200 Subject: fix codacy unused code --- includes/pages/admin_active.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/admin_active.php') diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php index 3ff3e0fb..ab962a93 100644 --- a/includes/pages/admin_active.php +++ b/includes/pages/admin_active.php @@ -5,7 +5,7 @@ function admin_active_title() { } function admin_active() { - global $tshirt_sizes, $shift_sum_formula; + global $tshirt_sizes; $msg = ""; $search = ""; @@ -146,7 +146,7 @@ function admin_active() { } $shirt_statistics = []; - foreach ($tshirt_sizes as $size => $_) { + foreach (array_keys($tshirt_sizes) as $size) { if ($size != '') { $shirt_statistics[] = [ 'size' => $size, -- cgit v1.3.1