]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11699 - Addendum - fix typo in fixup code. Sorry.
authortjhunt <tjhunt>
Thu, 11 Oct 2007 16:45:43 +0000 (16:45 +0000)
committertjhunt <tjhunt>
Thu, 11 Oct 2007 16:45:43 +0000 (16:45 +0000)
lib/weblib.php

index 5d428369db7e586197d62c6299c6863f4752d388..f1ff0575b43d9c6b7be336f7b31b0088f5440204 100644 (file)
@@ -3432,7 +3432,7 @@ function build_navigation($extranavlinks, $cm = null) {
             debugging('The field $cm->name should be set if you call build_navigation with '.
                     'a $cm parameter. If you get $cm using get_coursemodule_from_instance or ',
                     'get_coursemodule_from_id, this will be done automatically.', DEBUG_DEVELOPER);
-            if (!$cm->modname = get_field($cm->modname, 'name', 'id', $cm->instance)) {
+            if (!$cm->name = get_field($cm->modname, 'name', 'id', $cm->instance)) {
                 error('Cannot get the module name in build navigation.');
             }
         }