From 9695a91e2f33aa4f5ef09b7a7080c1e1290dd318 Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Sun, 10 Sep 2006 01:43:24 +0000 Subject: [PATCH] Fixed sesskey problem --- mod/lesson/report.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5