CC-3687 : Remove context menus from recorded shows since they are blank.

This commit is contained in:
Naomi Aro 2012-05-07 15:24:06 +02:00
parent 1cc84c1c85
commit a79514c8ee
2 changed files with 12 additions and 3 deletions

View file

@ -251,6 +251,14 @@ class Application_Model_ShowBuilder {
else if (intval($p_item["si_record"]) === 1) {
$row["record"] = true;
$row["instance"] = intval($p_item["si_id"]);
$showStartDT = new DateTime($p_item["si_starts"], new DateTimeZone("UTC"));
$showEndDT = new DateTime($p_item["si_ends"], new DateTimeZone("UTC"));
$startsEpoch = floatval($showStartDT->format("U.u"));
$endsEpoch = floatval($showEndDT->format("U.u"));
$this->getScheduledStatus($startsEpoch, $endsEpoch, $row);
}
else {
$row["empty"] = true;