From: tjhunt <tjhunt> Date: Thu, 11 Oct 2007 16:45:43 +0000 (+0000) Subject: MDL-11699 - Addendum - fix typo in fixup code. Sorry. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dd9a2dcc75bb94bcee53892a703f5cbe5c123ae2;p=moodle.git MDL-11699 - Addendum - fix typo in fixup code. Sorry. --- diff --git a/lib/weblib.php b/lib/weblib.php index 5d428369db..f1ff0575b4 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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.'); } }