X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/98907514962d51214461614c73087dc9f0f6c2f7..a8ef8ed3ff0aca2d4429b08cc7ff37bd273f4547:/login.php diff --git a/login.php b/login.php index 7f55853a..d578ae94 100644 --- a/login.php +++ b/login.php @@ -65,11 +65,9 @@ if ($request->isPost()) { // Redirect, depending on user role. if ($user->isAdmin()) { header('Location: admin_teams.php'); - } - else if ($user->isClient()) { + } elseif ($user->isClient()) { header('Location: reports.php'); - } - else { + } else { header('Location: time.php'); } exit();