From 92273447483d71b89f6613da27a5d3fd2d9ad8a1 Mon Sep 17 00:00:00 2001 From: fusionate Date: Tue, 23 May 2023 20:20:40 +0000 Subject: [PATCH] xml_cdr [Class]: Update for PHP 8.1 --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index a4d4ced0f0..96dd3cdc4c 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -293,7 +293,7 @@ if (!class_exists('xml_cdr')) { //parse the xml to get the call detail record info try { //disable xml entities - libxml_disable_entity_loader(true); + if (PHP_VERSION_ID < 80000) { libxml_disable_entity_loader(true); } //load the string into an xml object $xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);