mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
xml_cdr [Class]: Update for PHP 8.1
This commit is contained in:
@@ -293,7 +293,7 @@ if (!class_exists('xml_cdr')) {
|
|||||||
//parse the xml to get the call detail record info
|
//parse the xml to get the call detail record info
|
||||||
try {
|
try {
|
||||||
//disable xml entities
|
//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
|
//load the string into an xml object
|
||||||
$xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);
|
$xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||||
|
|||||||
Reference in New Issue
Block a user