]> git.mjollnir.org Git - moodle.git/commitdiff
Fix to clear the modform variable just in case there's one
authormoodler <moodler>
Mon, 14 Oct 2002 16:06:19 +0000 (16:06 +0000)
committermoodler <moodler>
Mon, 14 Oct 2002 16:06:19 +0000 (16:06 +0000)
from one module that later affects another module.

course/mod.php

index ba62e288897b79f62f84841ca213a1ff02eca2a0..1e7f8b6ac34326bbaefbae01499e2f5a6b713585 100644 (file)
                      "$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)) {