fix condition (#2298)
This commit is contained in:
parent
ff67706848
commit
7cbfb6f629
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue