From 4866a36714cce1c7fb13fd1328c7ac4a6fd7ebb7 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 16 Feb 2004 00:41:52 +0000 Subject: [PATCH] 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. :-) --- lib/weblib.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5