Skip to content

Commit c4ba6f8

Browse files
authored
Fix PHP code example in enrol documentation
1 parent 86f5e25 commit c4ba6f8

File tree

1 file changed

+1
-1
lines changed
  • versioned_docs/version-4.5/apis/subsystems

1 file changed

+1
-1
lines changed

versioned_docs/version-4.5/apis/subsystems/enrol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Returns the enrolment plugin base class with the given name.
142142
<div>
143143

144144
```php
145-
$instance = $DB->get_record('enrol', ['courseid' => $course->id, 'enrol' => 'manual'])
145+
$instance = $DB->get_record('enrol', ['courseid' => $course->id, 'enrol' => 'manual']);
146146
$enrolplugin = enrol_get_plugin($instance->enrol);
147147
$enrolplugin->enrol_user($instance, $user->id, $role->id, $timestart, $timeend);
148148
```

0 commit comments

Comments
 (0)