diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index 58938f654..71f242be6 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -227,8 +227,7 @@ class ScheduleController extends Zend_Controller_Action $showStartLocalDT = Application_Common_DateHelper::ConvertToLocalDateTime($instance->getShowInstanceStart()); $showEndLocalDT = Application_Common_DateHelper::ConvertToLocalDateTime($instance->getShowInstanceEnd()); - if ($epochNow < $showEndLocalDT->getTimestamp()) { - + if ($epochNow < $showStartLocalDT->getTimestamp()) { if ( ($isAdminOrPM || $isDJ) && !$instance->isRecorded() && !$instance->isRebroadcast()) { @@ -239,7 +238,6 @@ class ScheduleController extends Zend_Controller_Action $menu["clear"] = array("name"=> "Remove All Content", "icon" => "remove-all-content", "url" => "/schedule/clear-show"); } - } if (!$instance->isRecorded()) {