]> git.mjollnir.org Git - moodle.git/commitdiff
- Linking global categories from within courses now works.
authorwillcast <willcast>
Sat, 21 Feb 2004 01:16:03 +0000 (01:16 +0000)
committerwillcast <willcast>
Sat, 21 Feb 2004 01:16:03 +0000 (01:16 +0000)
mod/glossary/dynalink.php

index 9c694c880df98672b294227411fa856afa01084f..b5e58d97c9436717e6a88d8b2d038e41f0b60d56 100644 (file)
@@ -54,7 +54,9 @@
                             $category = get_record("glossary_categories","id",$concept->id);
                             $lastcategory = $concept->id;
                             if ( $cm->instance != $category->glossaryid  ) {
-                                $cm = get_coursemodule_from_instance("glossary", $category->glossaryid, $courseid);
+                                if ( !$cm = get_coursemodule_from_instance("glossary", $category->glossaryid, $courseid) ) {
+                                    $cm->id = 1;
+                                }
                             }
                         }