Skip to content

Commit

Permalink
Avoid some probles when returning to the original user after using th…
Browse files Browse the repository at this point in the history
…e loginas feature.

(sesskey not set)
  • Loading branch information
stronk7 committed Jan 31, 2005
1 parent 2d81101 commit 6bdd02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Expand Up @@ -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 '';
Expand Down

0 comments on commit 6bdd02e

Please sign in to comment.