diff --git a/user_multirole.php b/user_multirole.php
index 1597cfc..21558ae 100644
--- a/user_multirole.php
+++ b/user_multirole.php
@@ -37,7 +37,7 @@
if(count($u['types']) <= 1) {
/* This user doesn't have multiple roles, send them to their
* proper page */
- header("location: {$u['type']}_main.php");
+ header("location: {$_SESSION['users_type']}_main.php");
exit;
}
@@ -64,9 +64,13 @@
}
- $_SESSION['users_type'] = false;
-
send_header("Choose a Role");
+
+ switch($_GET['notice']) {
+ case 'already_logged_in':
+ echo error(i18n('You are already logged in, please use the [Logout] link in the upper right to logout before loggin in as a different user'));
+ break;
+ }
//only display the named greeting if we have their name
echo i18n("Hello %1",array($_SESSION['name']));
echo "
";