| @@ 283-291 (lines=9) @@ | ||
| 280 | // Unique answer |
|
| 281 | if (in_array($answerType, [UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION, UNIQUE_ANSWER_IMAGE])) { |
|
| 282 | $input_id = 'choice-' . $questionId . '-' . $answerId; |
|
| 283 | if (isset($user_choice[0]['answer']) && $user_choice[0]['answer'] == $numAnswer) { |
|
| 284 | $attributes = array( |
|
| 285 | 'id' => $input_id, |
|
| 286 | 'checked' => 1, |
|
| 287 | 'selected' => 1 |
|
| 288 | ); |
|
| 289 | } else { |
|
| 290 | $attributes = array('id' => $input_id); |
|
| 291 | } |
|
| 292 | ||
| 293 | if ($debug_mark_answer) { |
|
| 294 | if ($answerCorrect) { |
|
| @@ 7090-7094 (lines=5) @@ | ||
| 7087 | if (in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_IMAGE, UNIQUE_ANSWER_NO_OPTION))) { |
|
| 7088 | ||
| 7089 | $input_id = 'choice-'.$questionId.'-'.$answerId; |
|
| 7090 | if (isset($user_choice[0]['answer']) && $user_choice[0]['answer'] == $numAnswer) { |
|
| 7091 | $attributes = array('id' => $input_id, 'checked' => 1, 'selected' => 1); |
|
| 7092 | } else { |
|
| 7093 | $attributes = array('id' => $input_id); |
|
| 7094 | } |
|
| 7095 | ||
| 7096 | if ($debug_mark_answer) { |
|
| 7097 | if ($answerCorrect) { |
|