Skip to content
Snippets Groups Projects
Commit 809e97f6 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Fragebogen: Likert komplett kaputt"

Closes #2509

Merge request studip/studip!1697
parent c9cf6626
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ $options = $vote->questiondata['options'];
foreach ($answers as $answer) {
if ($answer['answerdata']['answers'][$key] == $option_index) {
$hits++;
if ($answer['user_id'] && $answer['user_id'][0] !== 'n') {
if ($answer['user_id'] && $answer['user_id'][0] !== 'q' && $answer['user_id'][0] !== 'n') {
$names[] = $answer->user->getFullName('full');
}
}
......
......@@ -40,7 +40,7 @@ $options = range($vote->questiondata['minimum'], $vote->questiondata['maximum'])
foreach ($answers as $answer) {
if ($answer['answerdata']['answers'][$key] == $option) {
$hits++;
if ($answer['user_id'] && $answer['user_id'][0] !== 'n') {
if ($answer['user_id'] && $answer['user_id'][0] !== 'q' && $answer['user_id'][0] !== 'n') {
$names[] = $answer->user->getFullName('full');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment