From 73ed2308c1f68ec080ff06afb4312a001e4f39e2 Mon Sep 17 00:00:00 2001 From: msquare Date: Sat, 30 Dec 2017 13:59:41 +0100 Subject: use user tshirt count --- includes/pages/admin_active.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'includes/pages/admin_active.php') 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' => '' . _('Sum') . '', - 'given' => '' . (int)$shirtCount . '' + 'given' => '' . $shirtCount . '' ]; return page_with_title(admin_active_title(), [ -- cgit v1.2.3-70-g09d2