summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-27 20:30:05 +0100
committermsquare <msquare@notrademark.de>2017-12-27 20:30:05 +0100
commitc3b8fa892d4d95e9c1b47e89e600dc96d1c279d2 (patch)
tree5909dedd3755464b9de12495906c4b0cd989d47b /includes/view
parent8c64532902952d02a53c7d375b766cc078ea5d4d (diff)
tshirt-score for forced active
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/User_view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 16267635..8d47dc47 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -429,10 +429,10 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
'comment' => '',
'actions' => ''
];
- if ($its_me || $tshirt_admin) {
+ if (config('enable_tshirt_size', false) && ($its_me || $tshirt_admin)) {
$myshifts_table[] = [
'date' => '<b>' . _('Your t-shirt score') . '&trade;:</b>',
- 'duration' => '<b>' . round($tshirt_score, 2) . ' h</b>',
+ 'duration' => '<b>' . $tshirt_score . '</b>',
'room' => '',
'shift_info' => '',
'comment' => '',