diff options
author | msquare <msquare@notrademark.de> | 2017-12-30 13:59:41 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-30 13:59:41 +0100 |
commit | 73ed2308c1f68ec080ff06afb4312a001e4f39e2 (patch) | |
tree | b09f6965693769aa8fc73b96110f2f6c513094c6 /includes | |
parent | b3ca550ed0667bf730ac44fad82f170f1ef937d2 (diff) |
use user tshirt count
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/admin_active.php | 5 |
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(), [ |