Skip to content

Commit

Permalink
corrected the sesskey code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpenne committed Jan 21, 2005
1 parent a39021e commit 29a014c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/lesson/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
}

require_login($course->id);
$SESSION->sesskey = !empty($USER->id) ? $USER->sesskey : '';

/// Print the page header

Expand Down Expand Up @@ -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>';
Expand Down

0 comments on commit 29a014c

Please sign in to comment.