From 94bbc1f5e2f1e94907002ec34aebf3982bb85330 Mon Sep 17 00:00:00 2001 From: gbateson Date: Thu, 21 Jun 2007 02:53:23 +0000 Subject: [PATCH] fix selection of individual students in the report conditions selector panel, (use PARAM_ALPHANUM instead of PARAM_ALPHA for reportusers parameter) --- mod/hotpot/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/report.php b/mod/hotpot/report.php index 258fb2e61a9..b6fc83ab9c8 100644 --- a/mod/hotpot/report.php +++ b/mod/hotpot/report.php @@ -51,7 +51,7 @@ // assemble array of form data $formdata = array( 'mode' => $mode, - 'reportusers' => has_capability('mod/hotpot:viewreport',$modulecontext) ? optional_param('reportusers', get_user_preferences('hotpot_reportusers', 'allusers'), PARAM_ALPHA) : 'this', + 'reportusers' => has_capability('mod/hotpot:viewreport',$modulecontext) ? optional_param('reportusers', get_user_preferences('hotpot_reportusers', 'allusers'), PARAM_ALPHANUM) : 'this', 'reportattempts' => optional_param('reportattempts', get_user_preferences('hotpot_reportattempts', 'all'), PARAM_ALPHA), 'reportformat' => optional_param('reportformat', 'htm', PARAM_ALPHA), 'reportshowlegend' => optional_param('reportshowlegend', get_user_preferences('hotpot_reportshowlegend', '0'), PARAM_INT),