diff --git a/application/models/Shows.php b/application/models/Shows.php index 95ca1a3b5..9bd550d7d 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -474,6 +474,14 @@ class ShowInstance { return $overlap; } } + //have to check if any scheduled content still fits. + else{ + $scheduledTime = $this->getTimeScheduled(); + + if((strtotime($new_ends) - strtotime($starts)) < strtotime($scheduledTime)) { + return "Must removed some scheduled content."; + } + } $this->setShowStart($new_starts); $this->setShowEnd($new_ends);