order by didn't work for full calendar

This commit is contained in:
naomiaro 2011-02-05 23:49:27 -05:00
parent aef4654a3f
commit 76b2f6e80b
1 changed files with 2 additions and 3 deletions

View File

@ -119,8 +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}'))
ORDER BY starts";
OR (ends > '{$start_timestamp}' AND ends <= '{$end_timestamp}'));
if(isset($excludeInstance)) {
foreach($excludeInstance as $instance) {
@ -132,7 +131,7 @@ class Show {
$sql = $sql." AND ({$exclude})";
}
//echo $sql;
echo $sql;
return $CC_DBC->GetAll($sql);
}