From c0189e3c5dd70b8e32e3fdb7ed17449b40be1e53 Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 19 Aug 2011 12:29:26 -0400 Subject: [PATCH] CC-2703: orange progress bar is playing when there is not content -fixed --- airtime_mvc/application/models/Dashboard.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/application/models/Dashboard.php b/airtime_mvc/application/models/Dashboard.php index 1234c96e2..593e60af1 100644 --- a/airtime_mvc/application/models/Dashboard.php +++ b/airtime_mvc/application/models/Dashboard.php @@ -69,11 +69,15 @@ class Application_Model_Dashboard } 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"],