From b82505fabdfd6cb5f0cd48eb958e7c009c837ff6 Mon Sep 17 00:00:00 2001 From: Byorun Date: Wed, 11 Jul 2018 22:05:20 +0200 Subject: [PATCH] fixed bpm counter --- app/UploadParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/UploadParser.php b/app/UploadParser.php index 5655bda..5b6e889 100644 --- a/app/UploadParser.php +++ b/app/UploadParser.php @@ -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;