fix survey

This commit is contained in:
Florian HENRY 2020-11-25 11:38:58 +01:00
parent bac24485c2
commit 345b3cbfc8
2 changed files with 3 additions and 6 deletions

View File

@ -43,10 +43,10 @@ $arrayoftypecolumn = GETPOST('typecolonne', 'array');
if (isset($_SESSION["nbrecases"])) {
for ($i = 0; $i < $_SESSION["nbrecases"]; $i++) {
if (isset($arrayofchoices[$i])) {
$_SESSION["choix$i"] = $arrayofchoices[$i];
$_SESSION["choix".$i] = $arrayofchoices[$i];
}
if (isset($arrayoftypecolumn[$i])) {
$_SESSION["typecolonne$i"] = $arrayoftypecolumn[$i];
$_SESSION["typecolonne".$i] = $arrayoftypecolumn[$i];
}
}
} else { //nombre de cases par défaut
@ -97,9 +97,6 @@ if (GETPOSTISSET("confirmecreation"))
}
}
var_dump($_SESSION); exit;
/*
* View
*/

View File

@ -40,7 +40,7 @@ $langs->load("opensurvey");
$post_var = array('title', 'description', 'mailsonde', 'creation_sondage_date', 'creation_sondage_autre');
foreach ($post_var as $var)
{
$$var = GETPOST($var);
${$var} = GETPOST($var);
}
// On initialise egalement la session car sinon bonjour les warning :-)