Update calls_active_inc.php (#4915)

This commit is contained in:
chansizzle 2019-11-25 16:55:24 -07:00 committed by FusionPBX
parent 9b084f82fa
commit 35f1b972e3
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@
$cid_num = str_replace("+", "", $cid_num);
//replace gateway uuid with name
if (sizeof($_SESSION['gateways']) > 0) {
if (is_array($_SESSION['gateways']) && sizeof($_SESSION['gateways']) > 0) {
foreach ($_SESSION['gateways'] as $gateway_uuid => $gateway_name) {
$application_data = str_replace($gateway_uuid, $gateway_name, $application_data);
}
@ -244,4 +244,4 @@
}
?>
?>