]> wagnertech.de Git - timetracker.git/blobdiff - password_change.php
Replacing else if with elseif
[timetracker.git] / password_change.php
index 62cc962d77015a1a5a3abb49aefb01d6ed1ae44e..b6fd4dd9a5adfce2b5c0e9ee1db708a2d9b2e457 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();