Skip to content

Commit

Permalink
Survey: Fix image when filling survey as anon user BT#17972
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jan 12, 2021
1 parent ab68f9e commit 6845666
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main/survey/fillsurvey.php
Expand Up @@ -575,7 +575,6 @@
// The first thing we do is delete the session
Session::erase('paged_questions');
Session::erase('page_questions_sec');
Session::erase('auto_invitation_code_'.$survey_data['code']);

$paged_questions_sec = [];
if (!empty($survey_data['survey_introduction'])) {
Expand Down Expand Up @@ -632,14 +631,12 @@
// We unset the sessions
Session::erase('paged_questions');
Session::erase('page_questions_sec');
Session::erase('auto_invitation_code_'.$survey_data['code']);
$paged_questions_sec = [];
} else {
echo '<div id="survey_content" class="survey_content">'.get_lang('UpdateInformation').'</div>';
// We unset the sessions
Session::erase('paged_questions');
Session::erase('page_questions_sec');
Session::erase('auto_invitation_code_'.$survey_data['code']);
$paged_questions_sec = [];
$form->display();
}
Expand Down

0 comments on commit 6845666

Please sign in to comment.