Просмотр исходного кода

Merge pull request #530 from own3mall/master

Minor Fix
OwN-3m-All 5 лет назад
Родитель
Сommit
335b0a50ed
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      modules/gamemanager/server_monitor.php

+ 2 - 0
modules/gamemanager/server_monitor.php

@@ -300,6 +300,8 @@ function exec_ogp_module() {
 		if( $show_all 
 			OR ( isset( $_GET['home_id'] ) and $_GET['home_id'] == $server_home['home_id'] ) 
 			OR ( isset( $_GET['home_id-mod_id-ip-port'] ) and $server_home['home_id'] == $post_home_id and $server_home['mod_id'] == $post_mod_id and $post_ip == $server_home['ip'] and $post_port == $server_home['port'] ) 
+			// If the IP has just been changed, post_ip and post_port aren't set... rather than not show this server, it should
+			OR ( isset( $_GET['home_id-mod_id-ip-port'] ) and $server_home['home_id'] == $post_home_id and $server_home['mod_id'] == $post_mod_id and !empty($server_home['ip']) and !empty($server_home['port']) ) 
 			OR ( isset( $_GET['home_cfg_id'] ) and $_GET['home_cfg_id'] == $server_home['home_cfg_id'] ) 
 		  )
 		{