From 395414c1c30e13e66c8cd79786a35d28546590c1 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Mon, 3 Aug 2015 13:50:32 +0200 Subject: [PATCH] Fixed problems with advance configuration permissions of Active Directory. Tiquet: #2566 --- pandora_console/include/functions_config.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 23e42f652e..e4864f66fa 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -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'); }