Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Accessing wrong field of $mod from course.modinfo. Merged from MOODLE…
…_17_STABLE.
  • Loading branch information
tjhunt committed Aug 10, 2007
1 parent 37d00ed commit df4c79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Expand Up @@ -4913,7 +4913,7 @@ function navmenulist($course, $sections, $modinfo, $strsection, $strjumpto, $wid
$section = $mod->section;

//Only add visible or teacher mods to jumpmenu
if ($mod->visible or has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_MODULE, $mod->id))) {
if ($mod->visible or has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_MODULE, $mod->cm))) {
$url = $mod->mod .'/view.php?id='. $mod->cm;
if ($flag) { // the current mod is the "next" mod
$nextmod = $mod;
Expand Down

0 comments on commit df4c79e

Please sign in to comment.