diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 429c740dfd..0e4dd9940d 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1911,14 +1911,6 @@ function config_process_config() * Parse the ACL IP list for access API */ - $temp_list_ACL_IPs_for_API = []; - if (isset($config['list_ACL_IPs_for_API'])) { - if (!empty($config['list_ACL_IPs_for_API'])) { - $temp_list_ACL_IPs_for_API = explode(';', $config['list_ACL_IPs_for_API']); - } - } - - $config['list_ACL_IPs_for_API'] = $temp_list_ACL_IPs_for_API; $keysConfig = array_keys($config); /* @@ -2976,6 +2968,15 @@ function config_process_config() // Finally, check if any value was overwritten in a form. config_update_config(); + + $temp_list_ACL_IPs_for_API = []; + if (isset($config['list_ACL_IPs_for_API'])) { + if (!empty($config['list_ACL_IPs_for_API'])) { + $temp_list_ACL_IPs_for_API = explode(';', $config['list_ACL_IPs_for_API']); + } + } + + $config['list_ACL_IPs_for_API'] = $temp_list_ACL_IPs_for_API; }