]> git.localhorst.tv Git - alttp.git/commitdiff
fix beer league multiplayer separator
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 3 Jan 2026 17:43:43 +0000 (18:43 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 3 Jan 2026 17:43:43 +0000 (18:43 +0100)
app/Console/Commands/SyncBeerLeague.php

index a88f442f1a7d6640770c6b98e0bf63e973c9d730..f642e2aa5f655ac3174cf8e19e05a7fafe62f15d 100644 (file)
@@ -96,8 +96,8 @@ class SyncBeerLeague extends Command {
                $episode->estimate = 120 * 60;
                $episode->save();
 
-               $players_a = explode(' ', $row[2]);
-               $players_b = explode(' ', $row[3]);
+               $players_a = preg_split('/,\s+/', $row[2]);
+               $players_b = preg_split('/,\s+/', $row[3]);
                for ($i = 0; $i < count($players_a); ++$i) {
                        $this->syncPlayer($episode, $players_a[$i]);
                        $this->syncPlayer($episode, $players_b[$i]);