fix survey
This commit is contained in:
parent
bac24485c2
commit
345b3cbfc8
@ -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
|
||||
*/
|
||||
|
||||
@ -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 :-)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user