Replaced boolval calls to cast to bool so that the app works with PHP 5.2.
[timetracker.git] / mobile / index.php
index de48595..1c7cf23 100644 (file)
@@ -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();
   }
 }
 // Redirect to time.php or mobile/time.php for other roles.