Sfoglia il codice sorgente

Update update_server.php

Adjokip 9 anni fa
parent
commit
d63e4e2ec7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      modules/gamemanager/update_server.php

+ 2 - 2
modules/gamemanager/update_server.php

@@ -114,8 +114,8 @@ function exec_ogp_module() {
 			if( isset( $_REQUEST['master_server_home_id'] ) )
 			{
 				$ms_home_id = $_REQUEST['master_server_home_id'];
-
-				if ($db->getMasterServer($ms_home_id, $home_info['home_cfg_id']) !== false) {
+				
+				if ($db->getMasterServer($home_info['remote_server_id'], $home_info['home_cfg_id']) == $ms_home_id) {
 					$ms_info = $db->getGameHome($ms_home_id);
 					$steam_out = $remote->masterServerUpdate( $home_id,$home_info['home_path'],$ms_home_id,$ms_info['home_path'],$exec_folder_path,$exec_path,$precmd,$postcmd );
 				} else {