CC-4204: Dynamic Smart Playlist: Set limit to 500 minutes and click Save will froze the Browser

- fixed
This commit is contained in:
James 2012-08-13 11:42:48 -04:00
parent 1bd94a0757
commit 19c90e6688

View file

@ -277,7 +277,12 @@ EOT;
} else {
$value = str_pad($value, 2, "0", STR_PAD_LEFT);
if ($modifier == "minutes") {
$length = "00:".$value.":00";
$hour = "00";
if ($value >59) {
$hour = intval($value/60);
$value = $value%60;
}
$length = $hour.":".$value.":00";
} else if ($modifier == "hours") {
$length = $value.":00:00";
}