Skip to content

Commit d9a9af0

Browse files
committed
Small bugfix
1 parent 9efce9f commit d9a9af0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reset_lockout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ function generate_table() {
124124
$user = $DB->get_record('user', array('id' => $userrecord->userid));
125125

126126
// Setup actions cell
127-
$reset = new moodle_url('/admin/tool/securityquestions/reset_lockout.php', array('reset' => $userrecord->id, 'sesskey' => sesskey()));
128-
$clearres = new moodle_url('/admin/tool/securityquestions/reset_lockout.php', array('clear' => $userrecord->id, 'sesskey' => sesskey()));
127+
$reset = new moodle_url('/admin/tool/securityquestions/reset_lockout.php', array('reset' => $user->id, 'sesskey' => sesskey()));
128+
$clearres = new moodle_url('/admin/tool/securityquestions/reset_lockout.php', array('clear' => $user->id, 'sesskey' => sesskey()));
129129
$cell = html_writer::link($reset, get_string('formresetlockout', 'tool_securityquestions')).'<br>'.
130130
html_writer::link($clearres, get_string('formclearresponsestable', 'tool_securityquestions'));
131131

0 commit comments

Comments
 (0)