diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index d6c966706a..22bad2c608 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -65,6 +65,7 @@ $rows = array(); if (isset($results["rows"])) { foreach ($results["rows"] as &$row) { + $context = $row['context']; //get the domain if (substr_count($row['presence_id'], '@') > 0) { $presence_id_array = explode('@', $row['presence_id']); @@ -76,7 +77,7 @@ $row['domain_name'] = $context_array[1]; } else { - $row['domain_name'] = $row['context']; + $row['domain_name'] = $context; } } //add the row to the array @@ -89,7 +90,7 @@ } } } - unset($results); + unset($results, $context); } //set the alternating color for each row