forked from science-ation/science-ation
- Fix a bug in multirole
This commit is contained in:
parent
1a246cba5d
commit
82b957eee4
@ -432,7 +432,7 @@ if(isset($_SESSION['users_type'])) {
|
||||
echo i18n($types[$_SESSION['users_type']]);
|
||||
}
|
||||
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_login.php?action=logout\">[".i18n("Logout")."]</a>";
|
||||
|
@ -144,7 +144,7 @@
|
||||
|
||||
/* Setup multirole so a multirole user can switch if they want to
|
||||
* without logging in/out */
|
||||
if($u['types'] > 1) {
|
||||
if(count($u['types']) > 1) {
|
||||
$_SESSION['multirole'] = true;
|
||||
} else {
|
||||
$_SESSION['multirole'] = false;
|
||||
|
Loading…
Reference in New Issue
Block a user