From 3a7fee84c830c9847a9c9ad3ee3f68e7338418b2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 17 Oct 2018 15:52:15 -0600 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 13b3df6f96..8c780a7596 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -292,8 +292,10 @@ if (!class_exists('xml_cdr')) { foreach ($xml->callflow as $row) { $caller_id_number = urldecode($row->caller_profile->caller_id_number); } - if (strlen($caller_id_name) == 0) foreach ($xml->callflow as $row) { - $caller_id_name = urldecode($row->caller_profile->caller_id_name); + if (strlen($caller_id_name) == 0) { + foreach ($xml->callflow as $row) { + $caller_id_name = urldecode($row->caller_profile->caller_id_name); + } } //misc