Fix: Initialise $choixdate to fix PhanUndeclaredVariableAssignOp + minor optimisation

This commit is contained in:
MDW 2024-03-18 13:10:27 +01:00
parent 3c49c976bf
commit f99f862843
No known key found for this signature in database

View File

@ -38,6 +38,7 @@ $_SESSION["formatsondage"] = "D";
$erreur = false;
$erreurNbchoice = 0;
$choixdate = '';
/*
* Actions
@ -178,7 +179,7 @@ if (GETPOST('confirmation')) {
// Add survey into database
if (!$erreur && $erreurNb == 0) {
$_SESSION["toutchoix"] = substr("$choixdate", 1);
$_SESSION["toutchoix"] = substr($choixdate, 1);
unset($_SESSION["nbrecaseshoraires"]);
ajouter_sondage();