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

This commit is contained in:
m-lopez-f 2015-08-03 13:48:29 +02:00
parent 55f3cc96b8
commit 79ee0ab591
1 changed files with 12 additions and 6 deletions

View File

@ -1110,13 +1110,19 @@ 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', '');
}
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);
}
$config['ad_adv_perms'] = $temp_ad_adv_perms;
if (!isset ($config['rpandora_server'])) {
config_update_value ( 'rpandora_server', 'localhost');