Skip to content

Commit

Permalink
notes MDL-24495 Set default course id for notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Oct 3, 2010
1 parent c11c725 commit 7b5f1cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
break;
}

if (empty($courseid)) {
$courseid = SITEID;
}

/// locate course information
$course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST);

Expand Down

0 comments on commit 7b5f1cd

Please sign in to comment.