From df44078448b07821dfff65c4b86312d160696492 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 20 Sep 2006 16:36:40 +0000 Subject: [PATCH] Another typo. A pity, I would love to know what a delect_records function did ;-) --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 150279356e..6443057425 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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; } -- 2.39.5