From: moodler Date: Mon, 14 Oct 2002 16:06:19 +0000 (+0000) Subject: Fix to clear the modform variable just in case there's one X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=109613b290541855b2c3caaa7a1bdc85db4f02ec;p=moodle.git Fix to clear the modform variable just in case there's one from one module that later affects another module. --- diff --git a/course/mod.php b/course/mod.php index ba62e28889..1e7f8b6ac3 100644 --- a/course/mod.php +++ b/course/mod.php @@ -245,6 +245,9 @@ "$streditinga", "form.name", "", false); } + unset($SESSION->modform); // Clear any old ones that may be hanging around. + save_session("SESSION"); + $modform = "../mod/$module->name/mod.html"; if (file_exists($modform)) {