Update calls_active_inc.php (#4915)
This commit is contained in:
parent
9b084f82fa
commit
35f1b972e3
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
@ -244,4 +244,4 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue