| @@ 5101-5104 (lines=4) @@ | ||
| 5098 | if ($debug) { |
|
| 5099 | error_log("reply " . print_r($reply, 1) . ""); |
|
| 5100 | } |
|
| 5101 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5102 | $ans = $reply[$i]; |
|
| 5103 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5104 | } |
|
| 5105 | } else { |
|
| 5106 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5107 | } |
|
| @@ 5111-5114 (lines=4) @@ | ||
| 5108 | } elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) { |
|
| 5109 | if ($choice != 0) { |
|
| 5110 | $reply = array_keys($choice); |
|
| 5111 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5112 | $ans = $reply[$i]; |
|
| 5113 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5114 | } |
|
| 5115 | } else { |
|
| 5116 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5117 | } |
|