Small formatting change

This commit is contained in:
denise 2013-10-09 17:38:06 -04:00
parent 05e4195165
commit 3261bd6307
1 changed files with 3 additions and 2 deletions

View File

@ -268,8 +268,9 @@ class Application_Service_CalendarService
} }
if ($this->ccShow->isRebroadcast()) { if ($this->ccShow->isRebroadcast()) {
$recordedShow = CcShowInstancesQuery::create()->filterByCcShow( $recordedShow = CcShowInstancesQuery::create()
$this->ccShowInstance->getDbOriginalShow())->findOne(); ->filterByCcShow($this->ccShowInstance->getDbOriginalShow())
->findOne();
if (is_null($recordedShow)) { if (is_null($recordedShow)) {
$this->ccShowInstance->delete(); $this->ccShowInstance->delete();
throw new Exception(_("Show was deleted because recorded show does not exist!")); throw new Exception(_("Show was deleted because recorded show does not exist!"));