X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=users.php;h=da5704018d32a0938e412c7015788478150dd906;hb=60d2288b7fca6caf0f5d9d3eee972f040eb24fb0;hp=1233f114aad20a1e763247c8a43cada94f40132d;hpb=170717b62207bd2da1628959d55b691a2d6f95a3;p=timetracker.git diff --git a/users.php b/users.php index 1233f114..da570401 100644 --- a/users.php +++ b/users.php @@ -44,9 +44,12 @@ if($user->canManageTeam()) { $inactive_users = ttTeamHelper::getInactiveUsers($user->team_id, true); } -// Check each active user if they have an uncompleted time entry. -foreach ($active_users as $key => $user) { - $active_users[$key]['has_uncompleted_entry'] = (bool) ttTimeHelper::getUncompleted($user['id']); +// Check if the team is set to show indicators for uncompleted time entries. +if (UNCOMPLETED_INDICATORS == $user->uncompleted_indicators) { + // Check each active user if they have an uncompleted time entry. + foreach ($active_users as $key => $user) { + $active_users[$key]['has_uncompleted_entry'] = (bool) ttTimeHelper::getUncompleted($user['id']); + } } $smarty->assign('active_users', $active_users);