diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index bf6422987e..e7a8292a7c 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1668,7 +1668,7 @@ //authentication for xml cdr http post if (!defined('STDIN')) { - if ($this->settings->get('cdr', 'http_enabled')) { + if ($this->settings->get('cdr', 'http_enabled', false)) { //get the contents of xml_cdr.conf.xml $conf_xml_string = file_get_contents($this->settings->get('switch', 'conf').'/autoload_configs/xml_cdr.conf.xml'); @@ -1700,7 +1700,7 @@ //if http enabled is set to false then deny access if (!defined('STDIN')) { - if ($this->settings->get('cdr', 'http_enabled') == false) { + if ($this->settings->get('cdr', 'http_enabled', false) { openlog('FusionPBX', LOG_NDELAY, LOG_AUTH); syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR'].'] XML CDR import default setting http_enabled is not enabled. Line: '.__line__); closelog(); @@ -1712,7 +1712,7 @@ //check for the correct username and password if (!defined('STDIN')) { - if ($this->settings->get('cdr', 'http_enabled', true)) { + if ($this->settings->get('cdr', 'http_enabled', false)) { if ($auth_array[0] == $_SERVER["PHP_AUTH_USER"] && $auth_array[1] == $_SERVER["PHP_AUTH_PW"]) { //echo "access granted\n"; $this->username = $auth_array[0];