fixed schedule content check

This commit is contained in:
naomiaro 2011-02-05 21:54:15 -05:00
parent bb5a2af142
commit 55eddb133b
1 changed files with 3 additions and 1 deletions

View File

@ -477,8 +477,10 @@ class ShowInstance {
//have to check if any scheduled content still fits.
else{
$scheduledTime = $this->getTimeScheduled();
$sql = "SELECT (timestamp '{$new_ends}' - timestamp '{$starts}') >= interval '{$scheduledTime}'";
$scheduledContentFits = $CC_DBC->GetOne($sql);
if((strtotime($new_ends) - strtotime($starts)) < strtotime($scheduledTime)) {
if($scheduledContentFits != "t") {
return "Must removed some scheduled content.";
}
}