diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php index 4b28dc2b70e..8c997b78dd4 100644 --- a/htdocs/opensurvey/wizard/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -53,8 +53,8 @@ $mailsonde = GETPOST('mailsonde'); $creation_sondage_date = GETPOST('creation_sondage_date'); $creation_sondage_autre = GETPOST('creation_sondage_autre'); -// We init some session variable to avoid warning -$session_var = array('title', 'description', 'mailsonde', 'allow_comments', 'allow_spy'); +// We init some session variables to avoid PHP 8 "undefined array key" warning +$session_var = array('title', 'description', 'mailsonde', 'allow_comments', 'allow_spy', 'champdatefin'); foreach ($session_var as $var) { if (!isset($_SESSION[$var])) { $_SESSION[$var] = ''; @@ -151,7 +151,7 @@ print ''."\n"; print ''; -print ''."\n"; +print ''."\n"; if (!$_SESSION["title"] && (GETPOST('creation_sondage_date') || GETPOST('creation_sondage_autre'))) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("PollTitle")), null, 'errors'); }
'.$langs->trans("PollTitle").'