| @@ 3457-3469 (lines=13) @@ | ||
| 3454 | ||
| 3455 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3456 | ||
| 3457 | if ($answerCorrect == 1) { |
|
| 3458 | if ($studentChoice) { |
|
| 3459 | $real_answers[$answerId] = true; |
|
| 3460 | } else { |
|
| 3461 | $real_answers[$answerId] = false; |
|
| 3462 | } |
|
| 3463 | } else { |
|
| 3464 | if ($studentChoice) { |
|
| 3465 | $real_answers[$answerId] = false; |
|
| 3466 | } else { |
|
| 3467 | $real_answers[$answerId] = true; |
|
| 3468 | } |
|
| 3469 | } |
|
| 3470 | } else { |
|
| 3471 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3472 | ||
| @@ 3473-3485 (lines=13) @@ | ||
| 3470 | } else { |
|
| 3471 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3472 | ||
| 3473 | if ($answerCorrect == 1) { |
|
| 3474 | if ($studentChoice) { |
|
| 3475 | $real_answers[$answerId] = true; |
|
| 3476 | } else { |
|
| 3477 | $real_answers[$answerId] = false; |
|
| 3478 | } |
|
| 3479 | } else { |
|
| 3480 | if ($studentChoice) { |
|
| 3481 | $real_answers[$answerId] = false; |
|
| 3482 | } else { |
|
| 3483 | $real_answers[$answerId] = true; |
|
| 3484 | } |
|
| 3485 | } |
|
| 3486 | } |
|
| 3487 | break; |
|
| 3488 | case FILL_IN_BLANKS: |
|