From f9ab70a9084820b4168396185d8590e49fef1fd9 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Agarwal Date: Wed, 9 Nov 2011 13:29:26 +0530 Subject: [PATCH 1/1] MDL-28277 Changing optional_param to optional_param_array --- mod/scorm/report/interactions/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/report/interactions/report.php b/mod/scorm/report/interactions/report.php index 4de69bfdf88..86240895dd9 100644 --- a/mod/scorm/report/interactions/report.php +++ b/mod/scorm/report/interactions/report.php @@ -37,7 +37,7 @@ class scorm_interactions_report extends scorm_default_report { global $CFG, $DB, $OUTPUT, $PAGE; $contextmodule = get_context_instance(CONTEXT_MODULE, $cm->id); $action = optional_param('action', '', PARAM_ALPHA); - $attemptids = optional_param('attemptid', array(), PARAM_RAW); + $attemptids = optional_param_array('attemptid', array(), PARAM_RAW); if ($action == 'delete' && has_capability('mod/scorm:deleteresponses', $contextmodule) && confirm_sesskey()) { if (scorm_delete_responses($attemptids, $scorm)) { //delete responses. -- 2.43.0