Initilize selectmod in navmenu() function to avoid some warnings
when showing the menu and no cm has been selected. No risk with this change, I suppose. :-)
This commit is contained in:
@@ -1729,6 +1729,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
|
||||
$previousmod = NULL;
|
||||
$backmod = NULL;
|
||||
$nextmod = NULL;
|
||||
$selectmod = NULL;
|
||||
$logslink = NULL;
|
||||
$flag = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user