mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-23502 improved coding style
This commit is contained in:
parent
eef400a460
commit
9eb7b1cb81
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ if ($editform->is_cancelled()) {
|
|||
enrol_try_internal_enrol($course->id, $USER->id, $CFG->creatornewroleid);
|
||||
|
||||
}
|
||||
if (!is_enrolled(get_context_instance(CONTEXT_COURSE, $course->id))) {
|
||||
if (!is_enrolled($context)) {
|
||||
// Redirect to manual enrolment page if possible
|
||||
$instances = enrol_get_instances($course->id, true);
|
||||
foreach($instances as $instance) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue