mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-28277 Changing optional_param to optional_param_array
This commit is contained in:
parent
3ab853fade
commit
f9ab70a908
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user