]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid one notice
authorstronk7 <stronk7>
Sat, 28 Aug 2004 20:00:35 +0000 (20:00 +0000)
committerstronk7 <stronk7>
Sat, 28 Aug 2004 20:00:35 +0000 (20:00 +0000)
Merged from MOODLE_14_STABLE

mod/glossary/edit.php

index 39e48b1eb550a6f5f3eac9046189bcbea8719416..52e03f481db21a18538bc89a9737b56892cd337e 100644 (file)
@@ -241,6 +241,9 @@ if (!isset($newentry->definition)) {
 if (!isset($newentry->timecreated)) {
     $newentry->timecreated = 0;
 }
+if (!isset($newentry->userid)) {
+    $newentry->userid = $USER->id;
+}
 $strglossary = get_string("modulename", "glossary");
 $strglossaries = get_string("modulenameplural", "glossary");
 $stredit = get_string("edit");