missing check for shows in the middle.

This commit is contained in:
naomiaro 2011-02-06 17:37:23 -05:00
parent 75eea94641
commit a5e4056555
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ 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}')
OR (starts <= '{$start_timestamp}' AND ends >= '{$end_timestamp}'))";
if(isset($excludeInstance)) {
foreach($excludeInstance as $instance) {