MDL-47494 ddimageortext: Merge branch 'MOODLE_21_STABLE' of github.com:jamiepratt/moodle-qtype_ddimageortext into MOODLE_21_STABLE

This commit is contained in:
Jamie Pratt
2012-01-31 16:23:11 +07:00
@@ -75,7 +75,7 @@ class qtype_ddimageortext_edit_form extends qtype_ddtoimage_edit_form_base {
//initialise file picker for dragimages
list(, $imagerepeats) = $this->get_drag_item_repeats();
$draftitemids = optional_param_array('dragitem', array(), PARAM_INT);
$draftitemids = optional_param('dragitem', array(), PARAM_INT);
for ($imageindex = 0; $imageindex < $imagerepeats; $imageindex++) {
$draftitemid = isset($draftitemids[$imageindex]) ? $draftitemids[$imageindex] :0;
//numbers not allowed in filearea name