diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index e71ecc568..cc0db9393 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -1039,6 +1039,9 @@ SQL; ); $origStartDateTime->setTimezone(new DateTimeZone("UTC")); $ccShowInstance = $this->getInstance($origStartDateTime); + if (!$ccShowInstance) { + throw new Exception("Could not find show instance with start time: ".$origStartDateTime->format("Y-m-d H:i:s")); + } } $ccShowInstance->setDbShowId($this->ccShow->getDbId());