summaryrefslogtreecommitdiff
path: root/includes/pages/admin_active.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-30 13:40:24 +0100
committermsquare <msquare@notrademark.de>2017-12-30 13:40:24 +0100
commitb3ca550ed0667bf730ac44fad82f170f1ef937d2 (patch)
tree3b163b9f2d13837f499137affd33ec9a56a5421d /includes/pages/admin_active.php
parent0314ba19e38077b62a2884985b5dd4d50e8af0b0 (diff)
simplify t-shirt statistics
Diffstat (limited to 'includes/pages/admin_active.php')
-rw-r--r--includes/pages/admin_active.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php
index c9f8679d..fd657c11 100644
--- a/includes/pages/admin_active.php
+++ b/includes/pages/admin_active.php
@@ -245,12 +245,6 @@ function admin_active()
$shirt_statistics = [];
foreach (array_keys($tshirt_sizes) as $size) {
if (!empty($size)) {
- $sc = DB::selectOne(
- 'SELECT count(*) FROM `User` WHERE `Size`=? AND `Gekommen`=1',
- [$size]
- );
- $sc = array_shift($sc);
-
$gc = DB::selectOne(
'SELECT count(*) FROM `User` WHERE `Size`=? AND `Tshirt`=1',
[$size]
@@ -259,7 +253,6 @@ function admin_active()
$shirt_statistics[] = [
'size' => $size,
- 'needed' => (int)$sc,
'given' => (int)$gc
];
}
@@ -270,7 +263,6 @@ function admin_active()
$shirt_statistics[] = [
'size' => '<b>' . _('Sum') . '</b>',
- 'needed' => '<b>' . User_arrived_count() . '</b>',
'given' => '<b>' . (int)$shirtCount . '</b>'
];
@@ -298,7 +290,6 @@ function admin_active()
'<h2>' . _('Shirt statistics') . '</h2>',
table([
'size' => _('Size'),
- 'needed' => _('Needed shirts'),
'given' => _('Given shirts')
], $shirt_statistics)
]);