getting tired....
This commit is contained in:
parent
76b2f6e80b
commit
14c71a3f39
|
@ -119,7 +119,7 @@ class Show {
|
||||||
FROM cc_show_instances
|
FROM cc_show_instances
|
||||||
LEFT JOIN cc_show ON cc_show.id = cc_show_instances.show_id
|
LEFT JOIN cc_show ON cc_show.id = cc_show_instances.show_id
|
||||||
WHERE ((starts >= '{$start_timestamp}' AND starts < '{$end_timestamp}')
|
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)) {
|
if(isset($excludeInstance)) {
|
||||||
foreach($excludeInstance as $instance) {
|
foreach($excludeInstance as $instance) {
|
||||||
|
@ -131,7 +131,7 @@ class Show {
|
||||||
$sql = $sql." AND ({$exclude})";
|
$sql = $sql." AND ({$exclude})";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $sql;
|
//echo $sql;
|
||||||
|
|
||||||
return $CC_DBC->GetAll($sql);
|
return $CC_DBC->GetAll($sql);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue