summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-30 13:59:41 +0100
committermsquare <msquare@notrademark.de>2017-12-30 13:59:41 +0100
commit73ed2308c1f68ec080ff06afb4312a001e4f39e2 (patch)
treeb09f6965693769aa8fc73b96110f2f6c513094c6
parentb3ca550ed0667bf730ac44fad82f170f1ef937d2 (diff)
use user tshirt count
-rw-r--r--includes/pages/admin_active.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php
index fd657c11..2616de6c 100644
--- a/includes/pages/admin_active.php
+++ b/includes/pages/admin_active.php
@@ -258,12 +258,11 @@ function admin_active()
}
}
- $shirtCount = DB::selectOne('SELECT count(*) FROM `User` WHERE `Tshirt`=1');
- $shirtCount = array_shift($shirtCount);
+ $shirtCount = User_tshirts_count();
$shirt_statistics[] = [
'size' => '<b>' . _('Sum') . '</b>',
- 'given' => '<b>' . (int)$shirtCount . '</b>'
+ 'given' => '<b>' . $shirtCount . '</b>'
];
return page_with_title(admin_active_title(), [