]> git.mjollnir.org Git - moodle.git/commitdiff
Make sure new courses set the timecreated field
authormartin <martin>
Mon, 10 Jun 2002 11:30:02 +0000 (11:30 +0000)
committermartin <martin>
Mon, 10 Jun 2002 11:30:02 +0000 (11:30 +0000)
course/edit.php

index cde0501a0cc2e6494ec87ca33309efe01e14426d..8d90e7eb0fd45ce00397a5cd36bbdf60b82b9a91 100644 (file)
@@ -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;