Finalize validation style consistency fixes

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/b16096ca-4ef7-4bb0-80e8-658767561478

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-06 23:02:31 +00:00 committed by GitHub
parent 72a06383e0
commit 09acf90004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -437,7 +437,7 @@ function config_games_render_editor(SimpleXMLElement $xml)
function config_games_get_config_file_path($db, $home_cfg_id)
{
$cfgInfo = $db->getGameCfg((int)$home_cfg_id);
if ($cfgInfo === FALSE) {
if ($cfgInfo === false) {
return false;
}
return SERVER_CONFIG_LOCATION . $cfgInfo['home_cfg_file'];
@ -574,7 +574,7 @@ function config_games_save_dom_and_refresh_cfg($db, $configFile, DOMDocument $do
return array(false, array('Failed to write configuration file.'));
}
$config = read_server_config($configFile);
if ($config !== FALSE) {
if ($config !== false) {
$db->addGameCfg($config);
}
return array(true, array());