Skip to content
Browse files

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

-fixed
  • Loading branch information...
1 parent 75040e8 commit c0189e3c5dd70b8e32e3fdb7ed17449b40be1e53 martin committed Aug 19, 2011
Showing with 9 additions and 5 deletions.
  1. +9 −5 airtime_mvc/application/models/Dashboard.php
View
14 airtime_mvc/application/models/Dashboard.php
@@ -69,11 +69,15 @@ public static function GetCurrentItem($p_timeNow){
} else {
if (count($row) == 0){
//last item is a show instance
- return array("name"=>$showInstance->getName(),
- "starts"=>$showInstance->getShowStart(),
- "ends"=>$showInstance->getShowEnd(),
- "media_item_played"=>false,
- "record"=>$showInstance->isRecorded());
+ if ($showInstance->isRecorded()){
+ return array("name"=>$showInstance->getName(),
+ "starts"=>$showInstance->getShowStart(),
+ "ends"=>$showInstance->getShowEnd(),
+ "media_item_played"=>false,
+ "record"=>true);
+ } else {
+ return null;
+ }
} else {
return array("name"=>$row[0]["artist_name"]." - ".$row[0]["track_title"],
"starts"=>$row[0]["starts"],

0 comments on commit c0189e3

Please sign in to comment.
Something went wrong with that request. Please try again.