Update calls_active_inc.php (#4915)

This commit is contained in:
chansizzle
2019-11-25 16:55:24 -07:00
committed by FusionPBX
parent a806f8ec8d
commit a5732be227
+1 -1
View File
@@ -192,7 +192,7 @@
$cid_num = str_replace("+", "", $cid_num); $cid_num = str_replace("+", "", $cid_num);
//replace gateway uuid with name //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) { foreach ($_SESSION['gateways'] as $gateway_uuid => $gateway_name) {
$application_data = str_replace($gateway_uuid, $gateway_name, $application_data); $application_data = str_replace($gateway_uuid, $gateway_name, $application_data);
} }