| @@ 5168-5171 (lines=4) @@ | ||
| 5165 | if ($debug) { |
|
| 5166 | error_log("reply " . print_r($reply, 1) . ""); |
|
| 5167 | } |
|
| 5168 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5169 | $ans = $reply[$i]; |
|
| 5170 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5171 | } |
|
| 5172 | } else { |
|
| 5173 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5174 | } |
|
| @@ 5178-5181 (lines=4) @@ | ||
| 5175 | } elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) { |
|
| 5176 | if ($choice != 0) { |
|
| 5177 | $reply = array_keys($choice); |
|
| 5178 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5179 | $ans = $reply[$i]; |
|
| 5180 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5181 | } |
|
| 5182 | } else { |
|
| 5183 | Event::saveQuestionAttempt( |
|
| 5184 | $questionScore, |
|