Update dialplan_edit.php (#4658)
This commit is contained in:
parent
1f8cca5217
commit
6bece5ce92
|
|
@ -81,7 +81,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the list of applications
|
//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']);
|
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||||
if ($fp) {
|
if ($fp) {
|
||||||
$result = event_socket_request($fp, 'api show application');
|
$result = event_socket_request($fp, 'api show application');
|
||||||
|
|
@ -893,4 +893,4 @@
|
||||||
//show the footer
|
//show the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue