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