Skip to content
Snippets Groups Projects
Commit 6721569c authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

remove duplicate counting, fixes #2442

Closes #2442

Merge request studip/studip!1641
parent d9e96bf9
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,6 @@ if ($numTaskAnswers > 0) {
if (!isset($results[(int) $answer['answerdata']['answers']])) {
$results[(int) $answer['answerdata']['answers']] = 0;
}
$results[(int) $answer['answerdata']['answers']]++;
if (!isset($results_users[(int) $answer['answerdata']['answers']])) {
$results_users[(int) $answer['answerdata']['answers']] = [];
}
......@@ -35,7 +33,6 @@ if ($numTaskAnswers > 0) {
}
}
}
$ordered_results = $results;
arsort($ordered_results);
$ordered_answer_options = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment