| @@ 3478-3490 (lines=13) @@ | ||
| 3475 | ||
| 3476 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3477 | ||
| 3478 | if ($answerCorrect == 1) { |
|
| 3479 | if ($studentChoice) { |
|
| 3480 | $real_answers[$answerId] = true; |
|
| 3481 | } else { |
|
| 3482 | $real_answers[$answerId] = false; |
|
| 3483 | } |
|
| 3484 | } else { |
|
| 3485 | if ($studentChoice) { |
|
| 3486 | $real_answers[$answerId] = false; |
|
| 3487 | } else { |
|
| 3488 | $real_answers[$answerId] = true; |
|
| 3489 | } |
|
| 3490 | } |
|
| 3491 | } else { |
|
| 3492 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3493 | if ($answerCorrect == 1) { |
|
| @@ 3493-3505 (lines=13) @@ | ||
| 3490 | } |
|
| 3491 | } else { |
|
| 3492 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3493 | if ($answerCorrect == 1) { |
|
| 3494 | if ($studentChoice) { |
|
| 3495 | $real_answers[$answerId] = true; |
|
| 3496 | } else { |
|
| 3497 | $real_answers[$answerId] = false; |
|
| 3498 | } |
|
| 3499 | } else { |
|
| 3500 | if ($studentChoice) { |
|
| 3501 | $real_answers[$answerId] = false; |
|
| 3502 | } else { |
|
| 3503 | $real_answers[$answerId] = true; |
|
| 3504 | } |
|
| 3505 | } |
|
| 3506 | } |
|
| 3507 | break; |
|
| 3508 | case FILL_IN_BLANKS: |
|