Skip to content

Commit

Permalink
MDL-29175 use new optinal_param_array in cloze question verification
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 9, 2011
1 parent 5d2db8a commit b8cc71e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions question/type/multianswer/edit_multianswer_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ protected function definition_inner($mform) {
$mform->addRule('questiontext', null, 'required', null, 'client');

// display the questions from questiontext;
if ("" != optional_param('questiontext', '', PARAM_RAW)) {
$this->questiondisplay = fullclone(qtype_multianswer_extract_question(
optional_param('questiontext', '', PARAM_RAW)));
if ($questiontext = optional_param_array('questiontext', false, PARAM_RAW)) {
$this->questiondisplay = fullclone(qtype_multianswer_extract_question($questiontext));

} else {
if (!$this->reload && !empty($this->savedquestiondisplay->id)) {
Expand Down

0 comments on commit b8cc71e

Please sign in to comment.