Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug #MDL-10632, fixing the use of 'delete_event'.

  • Loading branch information...
commit 4fb30fc90b654b6a4cc96bcfeaf53bc3cf54fb37 1 parent 50ae935
mchurch authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/lib.php
View
2  course/lib.php
@@ -2082,7 +2082,7 @@ function delete_course_module($id) {
$modulename = get_field('modules', 'name', 'id', $cm->module);
if ($events = get_records_select('event', "instance = '$cm->instance' AND modulename = '$modulename'")) {
foreach($events as $event) {
- delete_event($event);
+ delete_event($event->id);
}
}
return delete_records('course_modules', 'id', $cm->id);
Please sign in to comment.
Something went wrong with that request. Please try again.