diff --git a/src/Resources/contao/elements/ContentSurvey.php b/src/Resources/contao/elements/ContentSurvey.php index c6bf793..ac3dcbc 100644 --- a/src/Resources/contao/elements/ContentSurvey.php +++ b/src/Resources/contao/elements/ContentSurvey.php @@ -357,7 +357,7 @@ protected function createSurveyPage($pagerow, $pagenumber, $validate = true, $go $questions = \Hschottm\SurveyBundle\SurveyQuestionModel::findBy('pid', $pagerow['id'], ['order' => 'sorting']); if (null == $questions) { - return []; + $questions = []; } foreach ($questions as $questionModel) {