projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba3867
)
Bug #MDL-10632, fixing the use of 'delete_event'.
author
mchurch
<mchurch>
Fri, 27 Jul 2007 18:39:54 +0000
(18:39 +0000)
committer
mchurch
<mchurch>
Fri, 27 Jul 2007 18:39:54 +0000
(18:39 +0000)
course/lib.php
patch
|
blob
|
history
diff --git
a/course/lib.php
b/course/lib.php
index b97931c2b6b14f43b6307e1cfa6cd3155d1b3964..10ae2a8f2ae722ed2ebfece4d2f1094bf2c279a6 100644
(file)
--- a/
course/lib.php
+++ b/
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);