@@ 556-558 (lines=3) @@ | ||
553 | $current_question_item_body |
|
554 | ); |
|
555 | } else { |
|
556 | if (!isset ($exercise_info['question'][$current_question_ident]['wrong_answers'])) { |
|
557 | $exercise_info['question'][$current_question_ident]['wrong_answers'] = array(); |
|
558 | } |
|
559 | $exercise_info['question'][$current_question_ident]['wrong_answers'][] = $data; |
|
560 | } |
|
561 | break; |
|
@@ 423-425 (lines=3) @@ | ||
420 | case 'MAPENTRY': |
|
421 | if ($parent_element == "MAPPING") { |
|
422 | $answer_id = $attributes['MAPKEY']; |
|
423 | if (!isset ($exercise_info['question'][$current_question_ident]['weighting'])) { |
|
424 | $exercise_info['question'][$current_question_ident]['weighting'] = array(); |
|
425 | } |
|
426 | $exercise_info['question'][$current_question_ident]['weighting'][$answer_id] = $attributes['MAPPEDVALUE']; |
|
427 | } |
|
428 | break; |