Permalink
Browse files

MDL-29722 - No default guest enrol instance for requested courses

  • Loading branch information...
1 parent bc1f567 commit 113f6b5c79b8ba6ff87bfe49f8d4bae651196a0a @sunner sunner committed with nebgor Oct 11, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 enrol/guest/lib.php
View
@@ -271,6 +271,10 @@ public function course_updated($inserted, $course, $data) {
}
}
$this->add_instance($course, $fields);
+ } else {
+ if ($this->get_config('defaultenrol')) {
+ $this->add_default_instance($course);
+ }
}
} else {
$instances = $DB->get_records('enrol', array('courseid'=>$course->id, 'enrol'=>'guest'));

0 comments on commit 113f6b5

Please sign in to comment.