Skip to content
Browse files

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

  • Loading branch information...
1 parent b3c7ea0 commit 992c135e1930af268b3736b854fb732c11425e2d mchurch committed Jul 27, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
2 course/lib.php
@@ -1764,7 +1764,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);

0 comments on commit 992c135

Please sign in to comment.
Something went wrong with that request. Please try again.