diff --git a/modules/config_games/config_servers.php b/modules/config_games/config_servers.php index a2ae3260..6a803874 100644 --- a/modules/config_games/config_servers.php +++ b/modules/config_games/config_servers.php @@ -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()); diff --git a/modules/steam_workshop/includes/functions.php b/modules/steam_workshop/includes/functions.php index 6261f444..11b106d4 100644 --- a/modules/steam_workshop/includes/functions.php +++ b/modules/steam_workshop/includes/functions.php @@ -267,10 +267,7 @@ function sw_sync_profiles($db) $safe_config = $db->realEscapeSingle($config_name); $safe_name = $db->realEscapeSingle($game_name); - $insertSql = "INSERT IGNORE INTO " . sw_table('steam_workshop_game_profiles') . - " (`config_name`, `game_name`, `enabled`) VALUES ('$safe_config', '$safe_name', 0)"; - - $ok = $db->query($insertSql); + $ok = $db->query("INSERT IGNORE INTO " . sw_table('steam_workshop_game_profiles') . " (`config_name`, `game_name`, `enabled`) VALUES ('$safe_config', '$safe_name', 0)"); if ($ok) { $created++; }