summaryrefslogtreecommitdiff
path: root/includes/pages/admin_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/admin_user.php')
-rw-r--r--includes/pages/admin_user.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index 192becb0..2ab40cca 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -15,7 +15,14 @@ function admin_user_title()
*/
function admin_user()
{
- global $user, $tshirt_sizes, $privileges;
+ global $user, $privileges;
+ $tshirt_sizes = config('tshirt_sizes');
+
+ foreach ($tshirt_sizes as $key => $size) {
+ if (empty($size)) {
+ unset($tshirt_sizes[$key]);
+ }
+ }
$html = '';