]> wagnertech.de Git - timetracker.git/blobdiff - mobile/login.php
Replacing else if with elseif
[timetracker.git] / mobile / login.php
index 91a5241ef105f64f4a37478cd2892272323fddc0..a0747deb8a7af758da5302b6f8029d722d19a790 100644 (file)
@@ -69,16 +69,12 @@ if ($request->isPost()) {
       // Redirect, depending on user role.
       if ($user->isAdmin()) {
         header('Location: ../admin_teams.php');
-        exit();
-      }
-      else if ($user->isClient()) {
+      } elseif ($user->isClient()) {
         header('Location: ../reports.php');
-        exit();
-      }
-      else {
+      } else {
         header('Location: time.php');
-        exit();
       }
+      exit();
     } else
       $err->add($i18n->getKey('error.auth'));
   }