From e0763d190e4b3d2d168b2f9050985275fca2f1a5 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 1 Oct 2025 20:28:16 -0600 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 92fd4c0122..3fde2426b8 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -287,7 +287,7 @@ } rename($this->xml_cdr_dir.'/'.$this->file, $this->xml_cdr_dir.'/failed/sql/'.$this->file); } - elseif (!file_exists($this->xml_cdr_dir.'/failed') { + elseif (!file_exists($this->xml_cdr_dir.'/failed')) { mkdir($this->xml_cdr_dir.'/failed', 0770, true); //echo "Failed to create ".$this->xml_cdr_dir."/failed\n"; rename($this->xml_cdr_dir.'/'.$this->file, $this->xml_cdr_dir.'/failed/'.$this->file); @@ -366,7 +366,7 @@ $xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA); if ($xml === false) { //failed to load the XML, move the XML file to the failed directory - if (file_exists($this->xml_cdr_dir) { + if (file_exists($this->xml_cdr_dir)) { rename($this->xml_cdr_dir.'/'.$this->file, $this->xml_cdr_dir.'/failed/xml/'.$this->file); }