use user tshirt count

This commit is contained in:
msquare 2017-12-30 13:59:41 +01:00
parent b3ca550ed0
commit 73ed2308c1
1 changed files with 2 additions and 3 deletions

View File

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