diff --git a/airtime_mvc/application/services/CalendarService.php b/airtime_mvc/application/services/CalendarService.php index 73a2f3080..c32f1fb41 100644 --- a/airtime_mvc/application/services/CalendarService.php +++ b/airtime_mvc/application/services/CalendarService.php @@ -268,8 +268,9 @@ class Application_Service_CalendarService } if ($this->ccShow->isRebroadcast()) { - $recordedShow = CcShowInstancesQuery::create()->filterByCcShow( - $this->ccShowInstance->getDbOriginalShow())->findOne(); + $recordedShow = CcShowInstancesQuery::create() + ->filterByCcShow($this->ccShowInstance->getDbOriginalShow()) + ->findOne(); if (is_null($recordedShow)) { $this->ccShowInstance->delete(); throw new Exception(_("Show was deleted because recorded show does not exist!"));