xml_cdr [Class]: Update for PHP 8.1

This commit is contained in:
fusionate 2023-05-23 20:20:40 +00:00
parent fcc9600f83
commit 9227344748
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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);