From 7b5f1cd8c7b642988d286fe0726001fbae2153f9 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Sun, 3 Oct 2010 12:14:54 +0000 Subject: [PATCH] notes MDL-24495 Set default course id for notes --- notes/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notes/index.php b/notes/index.php index 005944910e8..a9d9d92e001 100644 --- a/notes/index.php +++ b/notes/index.php @@ -34,6 +34,10 @@ switch($filtertype) { break; } +if (empty($courseid)) { + $courseid = SITEID; +} + /// locate course information $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST); -- 2.43.0