From 711e008b3ad34a63c63b03bf9642bcee2d2eb596 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 17 Oct 2018 15:45:23 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 2b7529a7e3..d6d6fdebf3 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -204,10 +204,10 @@ $database->fields['context'] = $context; $database->fields['network_addr'] = check_str(urldecode($row->caller_profile->network_addr)); } - if (strlen($caller_id_name) == 0) { + if (strlen($database->fields['caller_id_name']) == 0) { $database->fields['caller_id_name'] = check_str(urldecode($row->caller_profile->caller_id_name)); } - if (strlen($caller_id_number) == 0) { + if (strlen($database->fields['caller_id_number']) == 0) { $database->fields['caller_id_number'] = check_str(urldecode($row->caller_profile->caller_id_number)); } $x++;