]> wagnertech.de Git - timetracker.git/blobdiff - login.php
More refactoring in Form.class.php.
[timetracker.git] / login.php
index 7f55853aec94360ecd2a2f72e8d5d079b007ac91..d578ae94ba3e91c2c5487280961de975146bde53 100644 (file)
--- 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();