summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-26 01:57:15 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-26 01:57:15 +0100
commitc602d0208f35273f9c5ce98c6a65831d9448dcc2 (patch)
tree163a84f9ac6d5b393115e58cdf5926db7337ac96 /includes/view
parent7cb3a772ed3a42c1182cd97e65c8b614cfb24b93 (diff)
integrate voucher into user state
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/User_view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 0c395888..4fbf8284 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -175,7 +175,7 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel
($admin_user_privilege && $freeloader) ? '<span class="text-danger"><span class="glyphicon glyphicon-exclamation-sign"></span> ' . _("Freeloader") . '</span><br />' : '',
$user_source['Gekommen'] ? User_shift_state_render($user_source) . '<br />' : '',
($user_source['Gekommen'] ? '<span class="text-success"><span class="glyphicon glyphicon-home"></span> ' . _("Arrived") . '</span>' : '<span class="text-danger">' . _("Not arrived") . '</span>'),
- ($user_source['got_voucher'] && $admin_user_privilege) ? '<br /><span class="text-success">' . glyph('cutlery') . _("Got vouchers") . '</span>' : '<br /><span class="text-danger">' . _("Got no vouchers") . '</span>',
+ $admin_user_privilege ? ($user_source['got_voucher'] ? '<br /><span class="text-success">' . glyph('cutlery') . _("Got vouchers") . '</span>' : '<br /><span class="text-danger">' . _("Got no vouchers") . '</span>') : '',
($user_source['Gekommen'] && $admin_user_privilege && $user_source['Aktiv']) ? ' <span class="text-success">' . _("Active") . '</span>' : '',
($user_source['Gekommen'] && $admin_user_privilege && $user_source['Tshirt']) ? ' <span class="text-success">' . _("T-Shirt") . '</span>' : ''
)),