From 48c8607d179b192a5882ba485d9587210fdf293d Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 13 Mar 2012 11:34:43 -0400 Subject: [PATCH] CC-3423: nowPlaying getCurrentPlaylist doesn't work for next song -added brackets around other if condition --- airtime_mvc/application/models/Schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 5abee1f36..86d2986e5 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -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'],