diff --git a/airtime_mvc/application/services/CalendarService.php b/airtime_mvc/application/services/CalendarService.php index 01a770ead..73a2f3080 100644 --- a/airtime_mvc/application/services/CalendarService.php +++ b/airtime_mvc/application/services/CalendarService.php @@ -268,8 +268,8 @@ class Application_Service_CalendarService } if ($this->ccShow->isRebroadcast()) { - $recordedShow = CcShowInstancesQuery::create()->findPk( - $this->ccShowInstance->getDbOriginalShow()); + $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!"));