From c3b8fa892d4d95e9c1b47e89e600dc96d1c279d2 Mon Sep 17 00:00:00 2001 From: msquare Date: Wed, 27 Dec 2017 20:30:05 +0100 Subject: tshirt-score for forced active --- includes/view/User_view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/view/User_view.php') 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' => '' . _('Your t-shirt score') . '™:', - 'duration' => '' . round($tshirt_score, 2) . ' h', + 'duration' => '' . $tshirt_score . '', 'room' => '', 'shift_info' => '', 'comment' => '', -- cgit v1.2.3