Fix error getting current schedule information if connected to master source
This commit is contained in:
parent
dd2ffd148d
commit
04290e28dc
|
@ -200,14 +200,14 @@ SQL;
|
||||||
// track information to the current show values
|
// track information to the current show values
|
||||||
if ($source != self::SCHEDULED_SOURCE_NAME) {
|
if ($source != self::SCHEDULED_SOURCE_NAME) {
|
||||||
$show = Application_Model_Show::getCurrentShow();
|
$show = Application_Model_Show::getCurrentShow();
|
||||||
$results["current"] = array(
|
$results["current"] = isset($show[0]) ? array(
|
||||||
"starts" => $show[0]["starts"],
|
"starts" => $show[0]["starts"],
|
||||||
"ends" => $show[0]["ends"],
|
"ends" => $show[0]["ends"],
|
||||||
"type" => _("livestream"),
|
"type" => _("livestream"),
|
||||||
"name" => (isset($show[0])?$show[0]["name"]:"") . " - " . _(self::LIVE_STREAM),
|
"name" => $show[0]["name"] . " - " . _(self::LIVE_STREAM),
|
||||||
"media_item_played" => false,
|
"media_item_played" => false,
|
||||||
"record" => "0"
|
"record" => "0"
|
||||||
);
|
) : null;
|
||||||
} else if (count($rows) >= 1) {
|
} else if (count($rows) >= 1) {
|
||||||
$currentMedia = $rows[0];
|
$currentMedia = $rows[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue