Revert "Revert "cc-4232: changed bit formatter to give empty string when bitrate is set to 0""

This reverts commit 340e5deb51c11c2dd3445cc1483b21c533d5bdef.
This commit is contained in:
Rudi Grinberg 2012-08-15 15:07:09 -04:00
parent a2dfcd6bc2
commit c58e2e7ff9
4 changed files with 16 additions and 7 deletions

View file

@ -19,6 +19,10 @@ class BitrateFormatter {
{
$Kbps = bcdiv($this->_bitrate, 1000, 0);
return "{$Kbps} Kbps";
if($Kbps == 0) {
return "";
} else {
return "{$Kbps} Kbps";
}
}
}
}