X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=c8b34cc359128f7913a3adc78fb7133dfc9a67e1;hb=101c6de6563df79076636ddede8ead89accbf96a;hp=894526d2770cae4024fca9d245ad22e3250f9fec;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/reports.php b/reports.php index 894526d2..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) { @@ -312,7 +312,7 @@ if ($request->isPost()) { exit(); } } -} // POST +} // isPost $smarty->assign('project_list', $project_list); $smarty->assign('task_list', $task_list);