diff --git a/lib/models/Vote.php b/lib/models/Vote.php index 645e5a497ae3469c45276a519b4327e0a74a2ae6..a86e4c4b4eeb8de0a7a60a61a1d974891cf1c640 100644 --- a/lib/models/Vote.php +++ b/lib/models/Vote.php @@ -151,7 +151,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']);