From 996c1a6f868070c58df2fadbd1fb5b17291da715 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 3 Feb 2009 07:47:24 +0000 Subject: [PATCH] theme / weblib: MDL-14400 Setting $THEME->makenavmenulist = true causes a php notice --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index dd31ad8f7aa..150483b12cd 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5438,7 +5438,7 @@ function navmenulist($course, $sections, $modinfo, $strsection, $strjumpto, $wid $mod->name = '('.$mod->name.')'; } $class = 'activity '.$mod->modname; - $class .= ($cmid == $mod->cm) ? ' selected' : ''; + $class .= ($cmid == $mod->id) ? ' selected' : ''; $menu[] = '
  • '. ''. ''.$mod->name.'
  • ';