From: martin Date: Mon, 10 Jun 2002 11:30:02 +0000 (+0000) Subject: Make sure new courses set the timecreated field X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e452ca303fecb64d0b37ae3a32055d4fd74b2ab9;p=moodle.git Make sure new courses set the timecreated field --- diff --git a/course/edit.php b/course/edit.php index cde0501a0c..8d90e7eb0f 100644 --- a/course/edit.php +++ b/course/edit.php @@ -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;