Fixed always-checked mail when a new person votes feature

This commit is contained in:
Marcos García de La Fuente 2014-01-05 20:36:40 +01:00
parent 1afdce2c16
commit 60cff505a7

View File

@ -60,8 +60,7 @@ if (GETPOST("creation_sondage_date") || GETPOST("creation_sondage_autre"))
$_SESSION["adresse"] = $adresse;
$_SESSION["commentaires"] = $commentaires;
unset($_SESSION["mailsonde"]);
if ($mailsonde !== null) {
if (GETPOST('mailsonde') == 'on') {
$_SESSION["mailsonde"] = true;
} else {
$_SESSION["mailsonde"] = false;