From c2903c4198349bb510c274d7ac9b2fcf08f098e2 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 6 Mar 2011 00:16:31 -0500 Subject: [PATCH] -updated now playing view to show only only currently playing item. --- application/models/Nowplaying.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Nowplaying.php b/application/models/Nowplaying.php index 563dada04..5602945f6 100644 --- a/application/models/Nowplaying.php +++ b/application/models/Nowplaying.php @@ -75,7 +75,8 @@ class Application_Model_Nowplaying $type = "b"; } else if (strtotime($item['item_ends']) < strtotime($timeNow)){ $type = "p"; - } else if (strtotime($item['item_starts']) < strtotime($timeNow) && strtotime($timeNow) < strtotime($item['item_ends'])){ + } else if (strtotime($item['item_starts']) < strtotime($timeNow) && strtotime($timeNow) < strtotime($item['item_ends']) + && strtotime($item['show_starts']) < strtotime($timeNow) && strtotime($timeNow) < strtotime($item['show_ends'])){ $type = "c"; } else { $type = "n";