Skip to content

Commit

Permalink
fix immediate_start check
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Apr 10, 2024
1 parent ffccae5 commit fec97e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/elements/ContentSurvey.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected function compile()
$this->outIntroductionPage();
}
// check survey start
if (Input::post('start') || (1 === $this->objSurvey->immediate_start && !Input::post('FORM_SUBMIT'))) {
if (Input::post('start') || ($this->objSurvey->immediate_start && !Input::post('FORM_SUBMIT'))) {
$page = 0;

switch ($this->objSurvey->access) {
Expand Down

0 comments on commit fec97e8

Please sign in to comment.