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