Add isset with variable last_app

This commit is contained in:
FusionPBX 2024-05-15 14:47:07 -06:00 committed by GitHub
parent a16ec80ce4
commit 5286dbbb1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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