]> git.mjollnir.org Git - moodle.git/commitdiff
fixed role_capabilities table name typo; merged from MOODLE_17_STABLE
authorskodak <skodak>
Tue, 17 Oct 2006 21:41:24 +0000 (21:41 +0000)
committerskodak <skodak>
Tue, 17 Oct 2006 21:41:24 +0000 (21:41 +0000)
lib/moodlelib.php

index b78fd10214866daca7bdb73f5027a642a6861142..dfd1020f859fad1354045ec42badf96e3f768f2e 100644 (file)
@@ -2917,7 +2917,7 @@ 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);
     delete_records('role_assignments', 'contextid', $context->id);
-    delete_records('role_role_capabilities', 'contextid', $context->id);
+    delete_records('role_capabilities', 'contextid', $context->id);
    
     return $result;
 }