CC-3423: nowPlaying getCurrentPlaylist doesn't work for next song

-added brackets around other if condition
This commit is contained in:
Daniel 2012-03-13 11:34:43 -04:00
parent 13e3197ebf
commit 48c8607d17
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Application_Model_Schedule {
$range = array("env"=>APPLICATION_ENV,
"schedulerTime"=>$timeNow,
"previous"=>isset($results['previous'])?$results['previous']:count($shows['previousShow'])>0?$shows['previousShow'][0]:null,
"previous"=>isset($results['previous'])?$results['previous']:(count($shows['previousShow'])>0?$shows['previousShow'][0]:null),
"current"=>isset($results['current'])?$results['current']:null,
"next"=> isset($results['next'])?$results['next']:(count($shows['nextShow'])>0?$shows['nextShow'][0]:null),
"currentShow"=>$shows['currentShow'],