diff --git a/notes/index.php b/notes/index.php index 005944910e8de..a9d9d92e001b7 100644 --- a/notes/index.php +++ b/notes/index.php @@ -34,6 +34,10 @@ break; } +if (empty($courseid)) { + $courseid = SITEID; +} + /// locate course information $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST);