mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Another typo.
A pity, I would love to know what a delect_records function did ;-)
This commit is contained in:
parent
a6e0172869
commit
df44078448
1 changed files with 2 additions and 2 deletions
|
@ -2870,8 +2870,8 @@ function reset_course_userdata($data, $showfeedback=true) {
|
||||||
|
|
||||||
// deletes all role assignments, and local override, these have no courseid in table and needs separate process
|
// deletes all role assignments, and local override, these have no courseid in table and needs separate process
|
||||||
$context = get_context_instance(CONTEXT_COURSE, $data->courseid);
|
$context = get_context_instance(CONTEXT_COURSE, $data->courseid);
|
||||||
delect_records('role_assignments', 'contextid', $context->id);
|
delete_records('role_assignments', 'contextid', $context->id);
|
||||||
delect_records('role_role_capabilities', 'contextid', $context->id);
|
delete_records('role_role_capabilities', 'contextid', $context->id);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue