瀏覽代碼

fix condition (#2298)

jalr 8 年之前
父節點
當前提交
a0692af461
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 {