Small fix to BPM sanitization

This commit is contained in:
Duncan Sommerville 2015-02-20 14:01:29 -05:00
parent 0177e40083
commit 61a47aeb27
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ class FileDataHelper {
}
if (array_key_exists("bpm", $data)) {
//Some BPM tags are silly and include the word "BPM". Let's strip that...
$data["year"] = str_ireplace("BPM", "", $data["year"]);
$data["bpm"] = str_ireplace("BPM", "", $data["bpm"]);
// This will convert floats to ints too.
$data["year"] = intval($data["year"]);
$data["bpm"] = intval($data["bpm"]);
}
}