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();
|
loadsettings();
|
||||||
|
|
||||||
if ($opId) {
|
if ($opId) {
|
||||||
$page['tabselected'] = $active;
|
|
||||||
if ($settings['enablegroups'] == '1') {
|
if ($settings['enablegroups'] == '1') {
|
||||||
$page['tabs'] = array(
|
$page['tabs'] = array(
|
||||||
array('title' => getlocal("page_agent.tab.main"), 'link' => "$mibewroot/operator/operator.php?op=$opId"),
|
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--;
|
if ($active == 3) $active--;
|
||||||
}
|
}
|
||||||
|
$page['tabselected'] = $active;
|
||||||
} else {
|
} else {
|
||||||
$page['tabs'] = array();
|
$page['tabs'] = array();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user