From 8964d5a8d1a190ed5b8cf26e9867b32d62e5fa97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helmut=20Schottm=C3=BCller?= Date: Thu, 28 Feb 2019 17:31:58 +0100 Subject: [PATCH] Fixed finishing the survey --- src/Resources/contao/elements/ContentSurvey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {