can only resize a show if scheduled content allows.

This commit is contained in:
naomiaro 2011-02-05 20:11:45 -05:00
parent 258157d92c
commit 85a936eb41
1 changed files with 8 additions and 0 deletions

View File

@ -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);