From: stronk7 Date: Sat, 28 Aug 2004 20:00:35 +0000 (+0000) Subject: Avoid one notice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c16caf5bc9b0136574ed80ed4452623f74f8dfbe;p=moodle.git Avoid one notice Merged from MOODLE_14_STABLE --- diff --git a/mod/glossary/edit.php b/mod/glossary/edit.php index 39e48b1eb5..52e03f481d 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -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");