Browse Source

fix condition (#2298)

jalr 8 năm trước cách đây
mục cha
commit
a0692af461
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      resources/classes/switch_settings.php

+ 2 - 2
resources/classes/switch_settings.php

@@ -51,7 +51,7 @@ if (!class_exists('switch_settings')) {
 					}
 				}
 				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'];
 					}
 					else {
@@ -59,7 +59,7 @@ if (!class_exists('switch_settings')) {
 					}
 				}
 				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'];
 					}
 					else {