From b4b364b70dc1e3ae0c44de68e107c3891dc78352 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 7 Jun 2017 12:16:58 -0600 Subject: [PATCH] Update calls_active_inc.php --- app/calls_active/calls_active_inc.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index e2a192e10c..72630971d1 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -68,25 +68,23 @@ //get the domain if (substr_count($row['presence_id'], '@') > 0) { $presence_id_array = explode('@', $row['presence_id']); - $domain_name = $presence_id_array[1]; + $row['domain_name'] = $presence_id_array[1]; } else if ($context != '') { if (substr_count($context, '@') > 0) { $context_array = explode('@', $context); - $domain_name = $context_array[1]; + $row['domain_name'] = $context_array[1]; } else { - $domain_name = $row['context']; + $row['domain_name'] = $row['context']; } } - //set the domain_name - $row['domain_name'] = $domain_name; //add the row to the array if (($show == 'all' && permission_exists('call_active_all'))) { $rows[] = $row; } else { - if ($row['context'] == $_SESSION['domain_name']) { + if ($row['domain_name'] == $_SESSION['domain_name']) { $rows[] = $row; } }