diff --git a/main/survey/fillsurvey.php b/main/survey/fillsurvey.php
index db30ced709..90823cc239 100644
--- a/main/survey/fillsurvey.php
+++ b/main/survey/fillsurvey.php
@@ -1127,9 +1127,12 @@ if ($survey_data['survey_type'] === '0') {
if ($survey_data['show_form_profile'] == 0) {
// The normal survey as always
if (($show < $numberofpages) || !$_GET['show']) { //$show = $_GET['show'] + 1
- echo '';
+ if ($show == 0) {
+ echo '';
+ } else {
+ echo '';
+ }
}
-
if ($show >= $numberofpages && $_GET['show']) {
echo '';
}
@@ -1138,7 +1141,11 @@ if ($survey_data['survey_type'] === '0') {
if (isset($_GET['show'])) {
$numberofpages = count($paged_questions);
if (($show < $numberofpages) || !$_GET['show']) { //$show = $_GET['show'] + 1
- echo '';
+ if ($show == 0) {
+ echo '';
+ } else {
+ echo '';
+ }
}
if ($show >= $numberofpages && $_GET['show']) {
diff --git a/main/survey/preview.php b/main/survey/preview.php
index 1d8731f49f..50668a9469 100644
--- a/main/survey/preview.php
+++ b/main/survey/preview.php
@@ -214,7 +214,11 @@ if (api_is_course_admin() || (api_is_course_admin() && $_GET['isStudentView'] ==
}
if (($show < $numberofpages) || (!$_GET['show'] && count($questions) > 0)) {
- echo '
';
+ if ($show == 0) {
+ echo '
';
+ } else {
+ echo '
';
+ }
}
if ($show >= $numberofpages && $_GET['show'] || (isset($_GET['show']) && count($questions) == 0)) {
if ($questions_exists == false) {