Fixed a rarely-occurring problem when deleting a module sometimes.

This commit is contained in:
moodler
2004-08-28 16:30:01 +00:00
parent b4ad8b3d24
commit 799ce03dff
+3
View File
@@ -138,6 +138,9 @@
if (! delete_mod_from_section($mod->coursemodule, "$mod->section")) {
notify("Could not delete the $mod->modulename from that section");
}
unset($SESSION->returnpage);
add_to_log($course->id, "course", "delete mod",
"view.php?id=$mod->course",
"$mod->modulename $mod->instance", $mod->coursemodule);