CC-2703: orange progress bar is playing when there is not content
-previous and future shows are now ignored as well
This commit is contained in:
parent
fa50c93914
commit
1272c172b7
|
@ -23,10 +23,14 @@ class Application_Model_Dashboard
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (count($row) == 0){
|
if (count($row) == 0){
|
||||||
//last item is a show instance
|
if ($showInstance->isRecorded()){
|
||||||
return array("name"=>$showInstance->getName(),
|
//last item is a show instance
|
||||||
"starts"=>$showInstance->getShowStart(),
|
return array("name"=>$showInstance->getName(),
|
||||||
"ends"=>$showInstance->getShowEnd());
|
"starts"=>$showInstance->getShowStart(),
|
||||||
|
"ends"=>$showInstance->getShowEnd());
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//return the one that started later.
|
//return the one that started later.
|
||||||
if ($row[0]["starts"] >= $showInstance->getShowStart()){
|
if ($row[0]["starts"] >= $showInstance->getShowStart()){
|
||||||
|
@ -107,10 +111,14 @@ class Application_Model_Dashboard
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (count($row) == 0){
|
if (count($row) == 0){
|
||||||
//last item is a show instance
|
if ($showInstance->isRecorded()){
|
||||||
return array("name"=>$showInstance->getName(),
|
//last item is a show instance
|
||||||
"starts"=>$showInstance->getShowStart(),
|
return array("name"=>$showInstance->getName(),
|
||||||
"ends"=>$showInstance->getShowEnd());
|
"starts"=>$showInstance->getShowStart(),
|
||||||
|
"ends"=>$showInstance->getShowEnd());
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//return the one that starts sooner.
|
//return the one that starts sooner.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue