From 442c9dda39482ca8dc1deac4c258dfb0c3ee49cf Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 4 Oct 2019 11:41:22 -0600 Subject: [PATCH] Update dialplan_edit.php --- app/dialplans/dialplan_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialplans/dialplan_edit.php b/app/dialplans/dialplan_edit.php index 0c003720ab..509488a412 100644 --- a/app/dialplans/dialplan_edit.php +++ b/app/dialplans/dialplan_edit.php @@ -81,7 +81,7 @@ } //get the list of applications - if (is_array($_SESSION['switch']['applications']) && 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');