CC-5289: Exception about linked show in zendphp.log
This commit is contained in:
parent
4cbbd1145b
commit
1046a0916d
1 changed files with 16 additions and 14 deletions
|
@ -248,22 +248,24 @@ class Application_Service_SchedulerService
|
||||||
}
|
}
|
||||||
} //foreach linked instance
|
} //foreach linked instance
|
||||||
|
|
||||||
$insert_sql = "INSERT INTO cc_schedule (starts, ends, ".
|
if (!empty($values)) {
|
||||||
"clip_length, fade_in, fade_out, cue_in, cue_out, ".
|
$insert_sql = "INSERT INTO cc_schedule (starts, ends, ".
|
||||||
"file_id, stream_id, instance_id, position) VALUES ".
|
"clip_length, fade_in, fade_out, cue_in, cue_out, ".
|
||||||
implode($values, ",");
|
"file_id, stream_id, instance_id, position) VALUES ".
|
||||||
|
implode($values, ",");
|
||||||
|
|
||||||
Application_Common_Database::prepareAndExecute(
|
Application_Common_Database::prepareAndExecute(
|
||||||
$insert_sql, array(), Application_Common_Database::EXECUTE);
|
$insert_sql, array(), Application_Common_Database::EXECUTE);
|
||||||
|
|
||||||
//update time_filled in cc_show_instances
|
//update time_filled in cc_show_instances
|
||||||
$now = gmdate("Y-m-d H:i:s");
|
$now = gmdate("Y-m-d H:i:s");
|
||||||
$update_sql = "UPDATE cc_show_instances SET ".
|
$update_sql = "UPDATE cc_show_instances SET ".
|
||||||
"time_filled = '{$timeFilled}', ".
|
"time_filled = '{$timeFilled}', ".
|
||||||
"last_scheduled = '{$now}' ".
|
"last_scheduled = '{$now}' ".
|
||||||
"WHERE show_id = {$ccShow->getDbId()}";
|
"WHERE show_id = {$ccShow->getDbId()}";
|
||||||
Application_Common_Database::prepareAndExecute(
|
Application_Common_Database::prepareAndExecute(
|
||||||
$update_sql, array(), Application_Common_Database::EXECUTE);
|
$update_sql, array(), Application_Common_Database::EXECUTE);
|
||||||
|
}
|
||||||
|
|
||||||
} //if at least one linked instance has content
|
} //if at least one linked instance has content
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue