-started adding show list-view

This commit is contained in:
martin 2011-01-28 00:23:39 -05:00
parent e52d566b83
commit 844baeeae6
13 changed files with 347 additions and 255 deletions

View file

@ -478,7 +478,8 @@ class Show {
}
if(!is_null($start) && is_null($end)) {
$sql_range = "(first_show <= '{$start}' AND last_show IS NULL)
OR (first_show <= '{$start}' AND last_show > '{$start}')";
OR (first_show <= '{$start}' AND last_show > '{$start}')
OR (first_show >= '{$start}')";
$sql = $sql_gen ." WHERE ". $sql_range;
}