- Fix a bug in multirole

This commit is contained in:
dave 2007-11-19 17:11:47 +00:00
parent 1a246cba5d
commit 82b957eee4
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ if(isset($_SESSION['users_type'])) {
echo i18n($types[$_SESSION['users_type']]); echo i18n($types[$_SESSION['users_type']]);
} }
echo " {$_SESSION['email']}: "; echo " {$_SESSION['email']}: ";
if($_SESSION['multirole']) { if($_SESSION['multirole'] == true) {
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_multirole.php\">[".i18n('Switch Roles')."]</a> "; echo "<a href=\"{$config['SFIABDIRECTORY']}/user_multirole.php\">[".i18n('Switch Roles')."]</a> ";
} }
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=logout\">[".i18n("Logout")."]</a>"; echo "<a href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=logout\">[".i18n("Logout")."]</a>";

View File

@ -144,7 +144,7 @@
/* Setup multirole so a multirole user can switch if they want to /* Setup multirole so a multirole user can switch if they want to
* without logging in/out */ * without logging in/out */
if($u['types'] > 1) { if(count($u['types']) > 1) {
$_SESSION['multirole'] = true; $_SESSION['multirole'] = true;
} else { } else {
$_SESSION['multirole'] = false; $_SESSION['multirole'] = false;