Replacing else if with elseif
[timetracker.git] / login.php
index 7f55853..d578ae9 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();