From 14c71a3f394ff58268072156eec7a602e4c0160d Mon Sep 17 00:00:00 2001 From: naomiaro Date: Sat, 5 Feb 2011 23:50:43 -0500 Subject: [PATCH] getting tired.... --- application/models/Shows.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Shows.php b/application/models/Shows.php index cc2e2adb9..cf3ff23b1 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -119,7 +119,7 @@ class Show { FROM cc_show_instances LEFT JOIN cc_show ON cc_show.id = cc_show_instances.show_id WHERE ((starts >= '{$start_timestamp}' AND starts < '{$end_timestamp}') - OR (ends > '{$start_timestamp}' AND ends <= '{$end_timestamp}')); + OR (ends > '{$start_timestamp}' AND ends <= '{$end_timestamp}'))"; if(isset($excludeInstance)) { foreach($excludeInstance as $instance) { @@ -131,7 +131,7 @@ class Show { $sql = $sql." AND ({$exclude})"; } - echo $sql; + //echo $sql; return $CC_DBC->GetAll($sql); }