Procházet zdrojové kódy

Parameters Can Be Locked From Users

own3mall před 8 roky
rodič
revize
e08b7bfd18
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7 0
      modules/gamemanager/mini_start.php

+ 7 - 0
modules/gamemanager/mini_start.php

@@ -432,6 +432,13 @@ elseif($server_home['home_id'] == $_POST['home_id'])
 							if(!$isAdmin){
 								if (array_key_exists((string)$param['key'], $last_param)){
 									$paramValue = (string)$last_param[(string)$param['key']];
+									if(!hasValue($paramValue)){
+										if(hasValue((string)$param->default) && $param['type'] != "other_game_server_path" && $param['type'] != "other_game_server_path_additional"){
+											$paramValue = (string)$param->default;
+										}else{
+											$paramValue = "";
+										}
+									}
 								}else{
 									if(hasValue((string)$param->default) && $param['type'] != "other_game_server_path" && $param['type'] != "other_game_server_path_additional"){
 										$paramValue = (string)$param->default;