X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/c4ba91b8e545d337e78496d0b780dc30b46ec05f..70272dc970919c348288bd09ff835f05e7538949:/reports.php diff --git a/reports.php b/reports.php index 90b12b2b..c8b34cc3 100644 --- a/reports.php +++ b/reports.php @@ -91,7 +91,7 @@ if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['ty // Add controls for projects and tasks. if ($user->canManageTeam()) { $project_list = ttProjectHelper::getProjects(); // Manager and co-managers can run reports on all active and inactive projects. -} else if ($user->isClient()) { +} elseif ($user->isClient()) { $project_list = ttProjectHelper::getProjectsForClient(); } else { $project_list = ttProjectHelper::getAssignedProjects($user->id); @@ -136,7 +136,7 @@ if ($user->canManageTeam() || $user->isClient()) { // Prepare user and assigned projects arrays. if ($user->canManageTeam()) $users = ttTeamHelper::getUsers(); // Active and inactive users for managers. - else if ($user->isClient()) + elseif ($user->isClient()) $users = ttTeamHelper::getUsersForClient(); // Active and inactive users for clients. foreach ($users as $single_user) {