From e4bb97bcc443db59ec00df941325e9353a624fc2 Mon Sep 17 00:00:00 2001 From: drigato Date: Fri, 6 Jun 2014 12:22:59 -0400 Subject: [PATCH] CC-5867: Can't edit show instance --- airtime_mvc/application/services/ShowService.php | 3 +++ 1 file changed, 3 insertions(+) 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());