Fix bug with tab selection on permissions management page while groups are disabled

This commit is contained in:
Fedor A. Fetisov 2014-01-24 17:33:11 +04:00
parent d19ae22a8b
commit 1d7b27a99d

View File

@ -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();
}