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