Skip to content

Commit

Permalink
🐛 Fix incorrect music meta import
Browse files Browse the repository at this point in the history
  • Loading branch information
Heroyt committed Dec 19, 2023
1 parent 1d67dfe commit 2f84ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/Evo5/ResultsParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public function parse(): Game {
return $game;
}

if (!empty($meta['music'])) {
if (!empty($meta['music']) && ((int)$meta['music']) > 0) {
try {
$game->music = MusicMode::get((int)$meta['music']);
} catch (ModelNotFoundException) {
Expand Down

0 comments on commit 2f84ce2

Please sign in to comment.