CC-3618: Current playing Text Field in Dashboard alternates between "Nothing
Scheduled" and "current playing song" - fixed
This commit is contained in:
parent
c510286614
commit
8f197115ae
2 changed files with 11 additions and 5 deletions
|
@ -114,6 +114,9 @@ class Application_Model_Schedule {
|
|||
|
||||
$timeNowAsMillis = strtotime($p_timeNow);
|
||||
for( $i = 0; $i < $numberOfRows; ++$i ){
|
||||
if($rows[$i]['ends'] > $rows[$i]["show_ends"]){
|
||||
$rows[$i]['ends'] = $rows[$i]["show_ends"];
|
||||
}
|
||||
if ((strtotime($rows[$i]['starts']) <= $timeNowAsMillis) && (strtotime($rows[$i]['ends']) >= $timeNowAsMillis)){
|
||||
if ( $i - 1 >= 0){
|
||||
$results['previous'] = array("name"=>$rows[$i-1]["artist_name"]." - ".$rows[$i-1]["track_title"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue