Update dialplan_edit.php

This commit is contained in:
FusionPBX 2019-10-04 11:41:22 -06:00 committed by GitHub
parent 5a68ff81c7
commit 442c9dda39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');