Skip to content

Commit

Permalink
fixed bpm counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Byorun committed Jul 11, 2018
1 parent f042ac2 commit b82505f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/UploadParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function parseSong()
$songData['songName'] = trim($info['songName']);
$songData['songSubName'] = trim(($info['songSubName'] ?? ''));
$songData['authorName'] = trim($info['authorName']);
$songData['beatsPerMinute'] = $info['beatsPerMinute'] > 0 ?: 0;
$songData['beatsPerMinute'] = $info['beatsPerMinute'] > 0 ? $info['beatsPerMinute'] : 0;
$songData['difficultyLevels'] = [];
$songData['hashMD5'] = null;
$songData['hashSHA1'] = null;
Expand Down

0 comments on commit b82505f

Please sign in to comment.