Allowed null tasks in project and tasks tracking mode.
[timetracker.git] / password_change.php
index 62cc962..b6fd4dd 100644 (file)
@@ -84,11 +84,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();