From: mark-nielsen Date: Sun, 10 Sep 2006 01:43:24 +0000 (+0000) Subject: Fixed sesskey problem X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9695a91e2f33aa4f5ef09b7a7080c1e1290dd318;p=moodle.git Fixed sesskey problem --- diff --git a/mod/lesson/report.php b/mod/lesson/report.php index 46aabd8c18..814ef87424 100644 --- a/mod/lesson/report.php +++ b/mod/lesson/report.php @@ -32,9 +32,9 @@ require_capability('mod/lesson:manage', $context); /// Process any form data before fetching attempts, grades and times - if (confirm_sesskey() and - has_capability('mod/lesson:edit', $context) and - $form = data_submitted($CFG->wwwroot.'/mod/lesson/report.php')) { + if (has_capability('mod/lesson:edit', $context) and + $form = data_submitted($CFG->wwwroot.'/mod/lesson/report.php') and + confirm_sesskey()) { /// Cycle through array of userids with nested arrays of tries if (!empty($form->attempts)) { foreach ($form->attempts as $userid => $tries) {