| @@ 3449-3461 (lines=13) @@ | ||
| 3446 | ||
| 3447 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3448 | ||
| 3449 | if ($answerCorrect == 1) { |
|
| 3450 | if ($studentChoice) { |
|
| 3451 | $real_answers[$answerId] = true; |
|
| 3452 | } else { |
|
| 3453 | $real_answers[$answerId] = false; |
|
| 3454 | } |
|
| 3455 | } else { |
|
| 3456 | if ($studentChoice) { |
|
| 3457 | $real_answers[$answerId] = false; |
|
| 3458 | } else { |
|
| 3459 | $real_answers[$answerId] = true; |
|
| 3460 | } |
|
| 3461 | } |
|
| 3462 | } else { |
|
| 3463 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3464 | ||
| @@ 3465-3477 (lines=13) @@ | ||
| 3462 | } else { |
|
| 3463 | $studentChoice = isset($choice[$answerAutoId]) ? $choice[$answerAutoId] : null; |
|
| 3464 | ||
| 3465 | if ($answerCorrect == 1) { |
|
| 3466 | if ($studentChoice) { |
|
| 3467 | $real_answers[$answerId] = true; |
|
| 3468 | } else { |
|
| 3469 | $real_answers[$answerId] = false; |
|
| 3470 | } |
|
| 3471 | } else { |
|
| 3472 | if ($studentChoice) { |
|
| 3473 | $real_answers[$answerId] = false; |
|
| 3474 | } else { |
|
| 3475 | $real_answers[$answerId] = true; |
|
| 3476 | } |
|
| 3477 | } |
|
| 3478 | } |
|
| 3479 | break; |
|
| 3480 | case FILL_IN_BLANKS: |
|