A bit more refactoring.
[timetracker.git] / index.php
index a6eac17..51e1e01 100644 (file)
--- a/index.php
+++ b/index.php
@@ -33,10 +33,9 @@ if ($auth->isAuthenticated()) {
   if ($user->isAdmin()) {
     header('Location: admin_teams.php');
     exit();
-  }
-  else if ($user->isClient()) {
+  } elseif ($user->isClient()) {
     header('Location: reports.php');
-    exit();    
+    exit();
   }
 }
 
@@ -77,4 +76,4 @@ if ($mobileBrowser) {
 
 <?php 
 }
-?>
\ No newline at end of file
+?>