Merge branch 'MDL-28277-master' of git://github.com/ankitagarwal/moodle
[moodle.git] / mod / scorm / report / interactions / report.php
index 219db4c..9b56d6c 100644 (file)
@@ -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.