From 9cfb96801193ea4f2938cdabeee1d4e48fb94450 Mon Sep 17 00:00:00 2001
From: martin <martin@martin-ThinkPad-T410.(none)>
Date: Mon, 7 Mar 2011 14:49:16 -0500
Subject: [PATCH] -empty shows should now show up on the now-playing view

---
 application/models/Shows.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/models/Shows.php b/application/models/Shows.php
index 8a3f6ac84..c55becf5a 100644
--- a/application/models/Shows.php
+++ b/application/models/Shows.php
@@ -788,7 +788,7 @@ class Show_DAL{
 		." WHERE ((si.starts < TIMESTAMP '$timeNow' - INTERVAL '$start seconds' AND si.ends > TIMESTAMP '$timeNow' - INTERVAL '$start seconds')"
         ." OR (si.starts > TIMESTAMP '$timeNow' - INTERVAL '$start seconds' AND si.ends < TIMESTAMP '$timeNow' + INTERVAL '$end seconds')"
         ." OR (si.starts < TIMESTAMP '$timeNow' + INTERVAL '$end seconds' AND si.ends > TIMESTAMP '$timeNow' + INTERVAL '$end seconds'))"
-        ." AND (st.starts < si.ends)"
+        ." AND (st.starts < si.ends OR st.starts IS NULL)"
         ." ORDER BY st.starts";
 
         return $CC_DBC->GetAll($sql);