CC-2703: orange progress bar is playing when there is not content

-fixed
This commit is contained in:
martin 2011-08-19 12:29:26 -04:00
parent 75040e867d
commit c0189e3c5d
1 changed files with 9 additions and 5 deletions

View File

@ -69,11 +69,15 @@ class Application_Model_Dashboard
} else { } else {
if (count($row) == 0){ if (count($row) == 0){
//last item is a show instance //last item is a show instance
if ($showInstance->isRecorded()){
return array("name"=>$showInstance->getName(), return array("name"=>$showInstance->getName(),
"starts"=>$showInstance->getShowStart(), "starts"=>$showInstance->getShowStart(),
"ends"=>$showInstance->getShowEnd(), "ends"=>$showInstance->getShowEnd(),
"media_item_played"=>false, "media_item_played"=>false,
"record"=>$showInstance->isRecorded()); "record"=>true);
} else {
return null;
}
} else { } else {
return array("name"=>$row[0]["artist_name"]." - ".$row[0]["track_title"], return array("name"=>$row[0]["artist_name"]." - ".$row[0]["track_title"],
"starts"=>$row[0]["starts"], "starts"=>$row[0]["starts"],