- fixed check for currentShow's end boundary to only be greater than current time
This commit is contained in:
parent
bf614dd729
commit
28a383e960
|
@ -1771,7 +1771,7 @@ class Application_Model_Show {
|
||||||
|
|
||||||
for( $i = 0; $i < $numberOfRows; ++$i ){
|
for( $i = 0; $i < $numberOfRows; ++$i ){
|
||||||
//Find the show that is within the current time.
|
//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){
|
if ( $i - 1 >= 0){
|
||||||
$results['previousShow'][0] = array(
|
$results['previousShow'][0] = array(
|
||||||
"id"=>$rows[$i-1]['id'],
|
"id"=>$rows[$i-1]['id'],
|
||||||
|
|
Loading…
Reference in New Issue