Skip to content
Snippets Groups Projects
Commit 8a316a12 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings in Vote.php, fixes #4492

Closes #4492

Merge request studip/studip!3283
parent 94476234
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,9 @@ class Vote extends QuestionnaireQuestion implements QuestionType
} else {
$userId = _('unbekannt') . ' ' . ++$countNobodys;
}
$answerOption[$userId] = $options[$answerData['answers']];
if (!empty($options[$answerData['answers']])) {
$answerOption[$userId] = $options[$answerData['answers']];
}
}
$question = strip_tags($this['questiondata']['description']);
......
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