CC-1805: Ability to edit a show
Fixed bug for single-show instances.
This commit is contained in:
parent
b034958fc5
commit
9e23d8b902
3 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue