Introduced ttAdmin class for admin tasks.
[timetracker.git] / index.php
index d390ebf..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();
   }
 }
 
@@ -78,4 +77,3 @@ if ($mobileBrowser) {
 <?php 
 }
 ?>
-