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

Parameters Can Be Locked From Users

own3mall 8 лет назад
Родитель
Сommit
e08b7bfd18
1 измененных файлов с 7 добавлено и 0 удалено
  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;