]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from MOODLE_14_STABLE
authorstronk7 <stronk7>
Sat, 28 Aug 2004 11:25:39 +0000 (11:25 +0000)
committerstronk7 <stronk7>
Sat, 28 Aug 2004 11:25:39 +0000 (11:25 +0000)
mod/glossary/edit.php

index 8e662520a1e769260d083d9b47c4cb0a883849b3..55b3d31df57aff36622d717640c1156618ab7eae 100644 (file)
@@ -193,7 +193,7 @@ if ( $confirm ) {
         $newentry->fullmatch = $form->fullmatch;
         $newentry->aliases = "";
         $newentry->userid = $form->userid;
-        $newentry->timemodified = $form->timemodified;
+        $newentry->timecreated = $form->timecreated;
 
         if ( $aliases = get_records("glossary_alias","entryid",$e) ) {
             foreach ($aliases as $alias) {
@@ -234,8 +234,8 @@ if (!isset($newentry->fullmatch)) {
 if (!isset($newentry->definition)) {
     $newentry->definition = "";
 }
-if (!isset($newentry->timemodified)) {
-    $newentry->timemodified = 0;
+if (!isset($newentry->timecreated)) {
+    $newentry->timecreated = 0;
 }
 $strglossary = get_string("modulename", "glossary");
 $strglossaries = get_string("modulenameplural", "glossary");