diff --git a/course/mod.php b/course/mod.php index deb22cb1f97..237c5208bd5 100644 --- a/course/mod.php +++ b/course/mod.php @@ -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);