Merge branch 'MDL-28277-master' of git://github.com/ankitagarwal/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 9 Nov 2011 08:43:18 +0000 (09:43 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 9 Nov 2011 08:43:18 +0000 (09:43 +0100)
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.