fix condition (#2298)

This commit is contained in:
jalr 2017-01-17 18:16:13 +01:00 committed by FusionPBX
parent ff67706848
commit 7cbfb6f629
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ if (!class_exists('switch_settings')) {
} }
} }
if (!isset($this->event_socket_port)) { if (!isset($this->event_socket_port)) {
if (strlen($_SESSION['event_socket_ip_address']) > 0) { if (strlen($_SESSION['event_socket_port']) > 0) {
$this->event_socket_port = $_SESSION['event_socket_port']; $this->event_socket_port = $_SESSION['event_socket_port'];
} }
else { else {
@ -59,7 +59,7 @@ if (!class_exists('switch_settings')) {
} }
} }
if (!isset($this->event_socket_password)) { if (!isset($this->event_socket_password)) {
if (strlen($_SESSION['event_socket_ip_address']) > 0) { if (strlen($_SESSION['event_socket_password']) > 0) {
$this->event_socket_password = $_SESSION['event_socket_password']; $this->event_socket_password = $_SESSION['event_socket_password'];
} }
else { else {