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(), [