summaryrefslogtreecommitdiff
path: root/includes/pages/admin_active.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/admin_active.php')
-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(), [