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.