Fixed problems with advance configuration permissions of Active Directory. Tiquet: #2566

This commit is contained in:
m-lopez-f 2015-08-03 13:50:32 +02:00
parent f6fed60832
commit 395414c1c3
1 changed files with 13 additions and 7 deletions

View File

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