From: stronk7 <stronk7> Date: Mon, 16 Feb 2004 00:41:52 +0000 (+0000) Subject: Initilize selectmod in navmenu() function to avoid some warnings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4866a36714cce1c7fb13fd1328c7ac4a6fd7ebb7;p=moodle.git 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. :-) --- diff --git a/lib/weblib.php b/lib/weblib.php index 0019069266..5e0c204ae3 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1729,6 +1729,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") { $previousmod = NULL; $backmod = NULL; $nextmod = NULL; + $selectmod = NULL; $logslink = NULL; $flag = false;