Avoid some probles when returning to the original user after using the loginas feature.

(sesskey not set)
This commit is contained in:
stronk7 2005-01-31 18:10:50 +00:00
parent 2d81101163
commit 6bdd02e40b

View File

@ -2679,7 +2679,7 @@ function update_module_button($moduleid, $courseid, $string) {
return "<form target=\"$CFG->framename\" method=\"get\" action=\"$CFG->wwwroot/course/mod.php\">".
"<input type=\"hidden\" name=\"update\" value=\"$moduleid\" />".
"<input type=\"hidden\" name=\"return\" value=\"true\" />".
"<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />".
"<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />".
"<input type=\"submit\" value=\"$string\" /></form>";
} else {
return '';