MDL-28277 Changing optional_param to optional_param_array
authorAnkit Kumar Agarwal <ankit_frenz@yahoo.co.in>
Wed, 9 Nov 2011 07:59:26 +0000 (13:29 +0530)
committerAnkit Kumar Agarwal <ankit_frenz@yahoo.co.in>
Wed, 9 Nov 2011 07:59:26 +0000 (13:29 +0530)
mod/scorm/report/interactions/report.php

index 4de69bf..8624089 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);
         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.
 
         if ($action == 'delete' && has_capability('mod/scorm:deleteresponses', $contextmodule) && confirm_sesskey()) {
             if (scorm_delete_responses($attemptids, $scorm)) { //delete responses.