]> git.mjollnir.org Git - moodle.git/commitdiff
- When guest or students search entries, now they are correctly displayed.
authorwillcast <willcast>
Thu, 18 Sep 2003 14:18:04 +0000 (14:18 +0000)
committerwillcast <willcast>
Thu, 18 Sep 2003 14:18:04 +0000 (14:18 +0000)
mod/glossary/lib.php

index 3245838a37dd88ced0bdbf58b58d816d1080f76a..11caf8d06b014a4836abeb7224d4791e054d9fc6 100644 (file)
@@ -233,7 +233,7 @@ function glossary_search_entries($searchterms, $glossary, $includedefinition) {
 
     if (!isteacher($glossary->course)) {
         $glossarymodule = get_record("modules", "name", "glossary");
-        $onlyvisible = " AND f.id = cm.instance AND cm.visible = 1 AND cm.module = $glossarymodule->id";
+        $onlyvisible = " AND g.id = cm.instance AND cm.visible = 1 AND cm.module = $glossarymodule->id";
         $onlyvisibletable = ", {$CFG->prefix}course_modules cm";
     } else {