From 28a383e960dfe67860d65f5136413be1aa537da5 Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 23 May 2012 16:18:59 -0400 Subject: [PATCH] - fixed check for currentShow's end boundary to only be greater than current time --- airtime_mvc/application/models/Show.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index cb91a454e..cfd218b6f 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -1771,7 +1771,7 @@ class Application_Model_Show { for( $i = 0; $i < $numberOfRows; ++$i ){ //Find the show that is within the current time. - if ((strtotime($rows[$i]['starts']) <= $timeNowAsMillis) && (strtotime($rows[$i]['ends']) >= $timeNowAsMillis)){ + if ((strtotime($rows[$i]['starts']) <= $timeNowAsMillis) && (strtotime($rows[$i]['ends']) > $timeNowAsMillis)){ if ( $i - 1 >= 0){ $results['previousShow'][0] = array( "id"=>$rows[$i-1]['id'],