| @@ 5145-5148 (lines=4) @@ | ||
| 5142 | if ($debug) { |
|
| 5143 | error_log("reply " . print_r($reply, 1) . ""); |
|
| 5144 | } |
|
| 5145 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5146 | $ans = $reply[$i]; |
|
| 5147 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5148 | } |
|
| 5149 | } else { |
|
| 5150 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5151 | } |
|
| @@ 5155-5158 (lines=4) @@ | ||
| 5152 | } elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) { |
|
| 5153 | if ($choice != 0) { |
|
| 5154 | $reply = array_keys($choice); |
|
| 5155 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5156 | $ans = $reply[$i]; |
|
| 5157 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5158 | } |
|
| 5159 | } else { |
|
| 5160 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5161 | } |
|