From 5286dbbb1bca779109453cb3cf7032451ec0b0be Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 15 May 2024 14:47:07 -0600 Subject: [PATCH] Add isset with variable last_app --- app/xml_cdr/resources/classes/xml_cdr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 31340f5322..03fb6faed5 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -426,10 +426,10 @@ if (!class_exists('xml_cdr')) { } //if intercept is used then update use the last sent callee id name and number - if ($xml->variables->last_app == 'intercept' && !empty($xml->variables->last_sent_callee_id_name)) { + if (isset($xml->variables->last_app) && $xml->variables->last_app == 'intercept' && !empty($xml->variables->last_sent_callee_id_name)) { $caller_id_name = urldecode($xml->variables->last_sent_callee_id_name); } - if ($xml->variables->last_app == 'intercept' && !empty($xml->variables->last_sent_callee_id_number)) { + if (isset($xml->variables->last_app) && $xml->variables->last_app == 'intercept' && !empty($xml->variables->last_sent_callee_id_number)) { $caller_id_number = urldecode($xml->variables->last_sent_callee_id_number); }