Fixed problems with advance configuration permissions of Active Directory. Tiquet: #2566
This commit is contained in:
parent
f6fed60832
commit
395414c1c3
|
@ -1026,14 +1026,20 @@ function config_process_config () {
|
|||
config_update_value ( 'ad_domain', '');
|
||||
}
|
||||
|
||||
$temp_ad_adv_perms = array();
|
||||
if (isset($config['ad_adv_perms'])) {
|
||||
if (!empty($config['ad_adv_perms'])) {
|
||||
$temp_ad_adv_perms = explode(';', io_safe_output($config['ad_adv_perms']));
|
||||
}
|
||||
if (!isset ($config["ad_adv_perms"])) {
|
||||
config_update_value ('ad_adv_perms', '');
|
||||
}
|
||||
$config['ad_adv_perms'] = $temp_ad_adv_perms;
|
||||
|
||||
else{
|
||||
$temp_ad_adv_perms = array();
|
||||
if (isset($config['ad_adv_perms'])) {
|
||||
if (!empty($config['ad_adv_perms'])) {
|
||||
$temp_ad_adv_perms = explode(';', io_safe_output($config['ad_adv_perms']));
|
||||
}
|
||||
}
|
||||
$config['ad_adv_perms'] = $temp_ad_adv_perms;
|
||||
$keysConfig = array_keys($config);
|
||||
}
|
||||
|
||||
if (!isset ($config['rpandora_server'])) {
|
||||
config_update_value ( 'rpandora_server', 'localhost');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue