CC-1805: Ability to edit a show

Fixed bug for single-show instances.
This commit is contained in:
martin 2011-04-13 11:23:58 -04:00
parent b034958fc5
commit 9e23d8b902
3 changed files with 7 additions and 2 deletions

View file

@ -188,6 +188,10 @@ class Show {
."AND record = 1";
$baseDate = $CC_DBC->GetOne($sql);
if (is_null($baseDate)){
return array();
}
$sql = "SELECT date(DATE '$baseDate' + day_offset::INTERVAL) as start_date, start_time FROM cc_show_rebroadcast "
."WHERE show_id = $showId "
."ORDER BY start_date";