summaryrefslogtreecommitdiff
path: root/includes/view/User_view.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-29 13:13:45 +0100
committermsquare <msquare@notrademark.de>2017-12-29 13:13:45 +0100
commitbe6bd2f3d37751c72cefe47a8e10459f66c46397 (patch)
tree162149f134550590e5516dd6c7d6847e983aea2f /includes/view/User_view.php
parent3993e553d1649ec01d49d9640547cd19392d3f9e (diff)
small improvements of user view
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r--includes/view/User_view.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 71bee3a0..2b92923e 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -419,10 +419,6 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
$timesum += ($shift['end'] - $shift['start']);
}
}
-
- if($user_source['force_active']) {
- $myshifts_table[] = success(_('You have done enough to get a t-shirt.'), true);
- }
if (count($myshifts_table) > 0) {
$myshifts_table[] = [
@@ -443,6 +439,8 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
'actions' => ''
];
}
+ } elseif($user_source['force_active']) {
+ $myshifts_table[] = success(_('You have done enough to get a t-shirt.'), true);
}
return $myshifts_table;
}