]> git.mjollnir.org Git - moodle.git/commitdiff
Initilize selectmod in navmenu() function to avoid some warnings
authorstronk7 <stronk7>
Mon, 16 Feb 2004 00:41:52 +0000 (00:41 +0000)
committerstronk7 <stronk7>
Mon, 16 Feb 2004 00:41:52 +0000 (00:41 +0000)
when showing the menu and no cm has been selected. No risk with this
change, I suppose. :-)

lib/weblib.php

index 00190692661c391f53ccc7630d58a5264e894b91..5e0c204ae34686ed7892deb791de26907a79795b 100644 (file)
@@ -1729,6 +1729,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
     $previousmod = NULL;
     $backmod = NULL;
     $nextmod = NULL;
+    $selectmod = NULL;
     $logslink = NULL;
     $flag = false;