]> git.mjollnir.org Git - moodle.git/commitdiff
Another typo.
authortjhunt <tjhunt>
Wed, 20 Sep 2006 16:36:40 +0000 (16:36 +0000)
committertjhunt <tjhunt>
Wed, 20 Sep 2006 16:36:40 +0000 (16:36 +0000)
A pity, I would love to know what a delect_records function did ;-)

lib/moodlelib.php

index 150279356e6ff3d322c386929c6baae2a2ba1b66..6443057425f9d8e13486c5c23de3817e8956460d 100644 (file)
@@ -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
     $context = get_context_instance(CONTEXT_COURSE, $data->courseid);
-    delect_records('role_assignments', 'contextid', $context->id);
-    delect_records('role_role_capabilities', 'contextid', $context->id);
+    delete_records('role_assignments', 'contextid', $context->id);
+    delete_records('role_role_capabilities', 'contextid', $context->id);
    
     return $result;
 }