]> git.mjollnir.org Git - moodle.git/commitdiff
Notice out.
authorstronk7 <stronk7>
Thu, 26 Aug 2004 21:39:18 +0000 (21:39 +0000)
committerstronk7 <stronk7>
Thu, 26 Aug 2004 21:39:18 +0000 (21:39 +0000)
Merged from MOODLE_14_STABLE

mod/glossary/lib.php

index 322888596a8fe0978e7423a620933305856e8ccb..abd9cedea82812cda43a9b10d1fdd65502d59f10 100644 (file)
@@ -52,7 +52,7 @@ function glossary_add_instance($glossary) {
 /// will create a new instance and return the id number
 /// of the new instance.
 
-    if (!$glossary->userating) {
+    if (!isset($glossary->userating) || !$glossary->userating) {
         $glossary->assessed = 0;
     }