MDL-29212 RCount incorrect in Quiz Analysis Report when correct answer is 0

This commit is contained in:
Glenn Ansley
2011-09-14 20:57:48 +01:00
committed by Tim Hunt
parent 9c105fc680
commit 4021470fd3
+1 -1
View File
@@ -175,7 +175,7 @@ class quiz_report extends quiz_default_report {
}
$responses = get_question_actual_response($quizquestions[$i], $states[$i]);
foreach ($responses as $resp){
if ($resp) {
if ('' !== $resp) {
if ($key = array_search($resp, $questions[$qid]['responses'])) {
$questions[$qid]['rcounts'][$key]++;
} else {