cc-2229-refactor-now-playing-code

-bug fix with red gap bar showing even when there was no gap
This commit is contained in:
mkonecny 2011-05-05 15:00:42 -04:00
parent 038f2e1c69
commit 1337efcdcd

View file

@ -73,7 +73,8 @@ class Application_Model_Nowplaying
//append show gap time row //append show gap time row
$gapTime = $si->getShowEndGapTime(); $gapTime = $si->getShowEndGapTime();
$data[] = Application_Model_Nowplaying::CreateGapRow($gapTime); if ($gapTime > 0)
$data[] = Application_Model_Nowplaying::CreateGapRow($gapTime);
} }
return array("currentShow"=>Show_DAL::GetCurrentShow($timeNow), "rows"=>$data); return array("currentShow"=>Show_DAL::GetCurrentShow($timeNow), "rows"=>$data);