Permalink
Browse files

MDL-28277 Changing optional_param to optional_param_array

  • Loading branch information...
1 parent 3ab853f commit f9ab70a9084820b4168396185d8590e49fef1fd9 @ankitagarwal ankitagarwal committed Nov 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/report/interactions/report.php
@@ -37,7 +37,7 @@ function display($scorm, $cm, $course, $download) {
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.

0 comments on commit f9ab70a

Please sign in to comment.