Permalink
Browse files

corrected the sesskey code

  • Loading branch information...
1 parent a39021e commit 29a014c05a5c9e12a7407a096eddbb06a11d1d15 michaelpenne committed Jan 21, 2005
Showing with 1 addition and 2 deletions.
  1. +1 −2 mod/lesson/view.php
View
3 mod/lesson/view.php
@@ -23,7 +23,6 @@
}
require_login($course->id);
- $SESSION->sesskey = !empty($USER->id) ? $USER->sesskey : '';
/// Print the page header
@@ -75,7 +74,7 @@
if (isteacheredit($course->id)) {
$button = '<table><tr><td>';
$button .= '<form target="'. $CFG->framename .'" method="get" action="'. $CFG->wwwroot .'/course/mod.php">'.
- '<input type="hidden" name="sesskey" value="'. $SESSION->sesskey .'" />'.
+ '<input type="hidden" name="sesskey" value="'. $USER->sesskey .'" />'.
'<input type="hidden" name="update" value="'. $cm->id .'" />'.
'<input type="hidden" name="return" value="true" />'.
'<input type="submit" value="'. get_string('editlessonsettings', 'lesson') .'" /></form>';

0 comments on commit 29a014c

Please sign in to comment.