mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 00:14:40 +03:00
Fix bug with tab selection on permissions management page while groups are disabled
This commit is contained in:
parent
d19ae22a8b
commit
1d7b27a99d
@ -21,7 +21,6 @@ function setup_operator_settings_tabs($opId, $active)
|
||||
loadsettings();
|
||||
|
||||
if ($opId) {
|
||||
$page['tabselected'] = $active;
|
||||
if ($settings['enablegroups'] == '1') {
|
||||
$page['tabs'] = array(
|
||||
array('title' => getlocal("page_agent.tab.main"), 'link' => "$mibewroot/operator/operator.php?op=$opId"),
|
||||
@ -37,6 +36,7 @@ function setup_operator_settings_tabs($opId, $active)
|
||||
);
|
||||
if ($active == 3) $active--;
|
||||
}
|
||||
$page['tabselected'] = $active;
|
||||
} else {
|
||||
$page['tabs'] = array();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user