small improvements of user view

This commit is contained in:
msquare 2017-12-29 13:13:45 +01:00
parent 3993e553d1
commit be6bd2f3d3
1 changed files with 2 additions and 4 deletions

View File

@ -420,10 +420,6 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
} }
} }
if($user_source['force_active']) {
$myshifts_table[] = success(_('You have done enough to get a t-shirt.'), true);
}
if (count($myshifts_table) > 0) { if (count($myshifts_table) > 0) {
$myshifts_table[] = [ $myshifts_table[] = [
'date' => '<b>' . _('Sum:') . '</b>', 'date' => '<b>' . _('Sum:') . '</b>',
@ -443,6 +439,8 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
'actions' => '' 'actions' => ''
]; ];
} }
} elseif($user_source['force_active']) {
$myshifts_table[] = success(_('You have done enough to get a t-shirt.'), true);
} }
return $myshifts_table; return $myshifts_table;
} }