mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Initialise $choixdate to fix PhanUndeclaredVariableAssignOp + minor optimisation
This commit is contained in:
parent
3c49c976bf
commit
f99f862843
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user