Skip to content

Commit

Permalink
allow separators other than comma in copy tool (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras authored Dec 1, 2023
1 parent d6e6e7f commit d6e9755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
}

if ($action === 'copy-unlocks') {
$fromAchievementIds = explode(',', requestInputSanitized('s'));
$fromAchievementIds = separateList(requestInputSanitized('s'));
$fromAchievementCount = count($fromAchievementIds);
$toAchievementIds = explode(',', requestInputSanitized('a'));
$toAchievementIds = separateList(requestInputSanitized('a'));

// determine which players have earned all of the required achievements
$existing = PlayerAchievement::whereIn('achievement_id', $fromAchievementIds)
Expand Down

0 comments on commit d6e9755

Please sign in to comment.