소스 검색

Fixed a couple of bugs in the server startup.

DieFeM 7 년 전
부모
커밋
31c685bec9
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      modules/gamemanager/mini_start.php

+ 4 - 2
modules/gamemanager/mini_start.php

@@ -452,8 +452,7 @@ elseif($server_home['home_id'] == $_POST['home_id'])
 				if (array_key_exists($paramKey, $last_param))
 				if (array_key_exists($paramKey, $last_param))
 					$savedValue = (string)$last_param[$paramKey];
 					$savedValue = (string)$last_param[$paramKey];
 				
 				
-				if(property_exists($param, 'access') and $param->access == "admin" && !$isAdmin)
-					$lockedByAdmin = true;
+				$lockedByAdmin = (property_exists($param, 'access') and $param->access == "admin" and !$isAdmin);
 				
 				
 				// Dependency fields...
 				// Dependency fields...
 				if($paramType == "other_game_server_path" or $paramType == "other_game_server_path_additional")
 				if($paramType == "other_game_server_path" or $paramType == "other_game_server_path_additional")
@@ -499,6 +498,9 @@ elseif($server_home['home_id'] == $_POST['home_id'])
 				
 				
 				if(isset($realKey))
 				if(isset($realKey))
 					unset($realKey);
 					unset($realKey);
+				
+				if(isset($savedValue))
+					unset($savedValue);
 			}
 			}
 		}
 		}
 		elseif( !$param_access_enabled )
 		elseif( !$param_access_enabled )