From 6bece5ce92a4b20541b55a88231f544e12c08f2a Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Wed, 25 Sep 2019 20:34:42 -0600 Subject: [PATCH] Update dialplan_edit.php (#4658) --- app/dialplans/dialplan_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dialplans/dialplan_edit.php b/app/dialplans/dialplan_edit.php index db79bb8b13..0c003720ab 100644 --- a/app/dialplans/dialplan_edit.php +++ b/app/dialplans/dialplan_edit.php @@ -81,7 +81,7 @@ } //get the list of applications - if (count($_SESSION['switch']['applications']) == 0) { + if (is_array($_SESSION['switch']['applications']) && count($_SESSION['switch']['applications']) == 0) { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { $result = event_socket_request($fp, 'api show application'); @@ -893,4 +893,4 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>