From e452ca303fecb64d0b37ae3a32055d4fd74b2ab9 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 10 Jun 2002 11:30:02 +0000 Subject: [PATCH] Make sure new courses set the timecreated field --- course/edit.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5