Polish readability issues from validation feedback

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:01:33 +00:00 committed by GitHub
parent 33cbb13d1b
commit 72a06383e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 8 deletions

View file

@ -62,7 +62,10 @@ function exec_ogp_module()
$overwrite = isset($_POST['overwrite_existing']) && $_POST['overwrite_existing'] === '1';
$updated = sw_apply_detected_profile_defaults($db, $profile, $detected, $overwrite);
if ($updated > 0) {
sw_success("Applied $updated detected default value(s)." . ($overwrite ? ' Existing values were allowed to be overwritten.' : ' Existing non-empty values were kept.'));
$overwriteMessage = $overwrite
? ' Existing values were allowed to be overwritten.'
: ' Existing non-empty values were kept.';
sw_success("Applied $updated detected default value(s)." . $overwriteMessage);
} else {
sw_success('No profile values needed updating based on current overwrite setting.');
}