From: moodler Date: Sat, 28 Aug 2004 17:19:06 +0000 (+0000) Subject: Merged from stable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6e85ab4676e0ade5a1f09f730248763a6388aa3a;p=moodle.git Merged from stable --- diff --git a/course/mod.php b/course/mod.php index deb22cb1f9..237c5208bd 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);