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:
parent
72a06383e0
commit
09acf90004
2 changed files with 3 additions and 6 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue