Make sure new courses set the timecreated field
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
error("Serious Error! Could not update the course record! (id = $form->id)");
|
||||
}
|
||||
} else {
|
||||
$form->timecreated = time();
|
||||
|
||||
if ($newid = insert_record("course", $form)) { // Set up new course
|
||||
$week->course = $newid; // Create a default week.
|
||||
$week->week = 0;
|
||||
|
||||
Reference in New Issue
Block a user