From 35f1b972e3f4967721a74dec2654ba0d61a3856f Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Mon, 25 Nov 2019 16:55:24 -0700 Subject: [PATCH] Update calls_active_inc.php (#4915) --- app/calls_active/calls_active_inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index a2972eb836..8b9c23c536 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -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 @@ } -?> \ No newline at end of file +?>