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["adresse"] = $adresse;
$_SESSION["commentaires"] = $commentaires; $_SESSION["commentaires"] = $commentaires;
unset($_SESSION["mailsonde"]); if (GETPOST('mailsonde') == 'on') {
if ($mailsonde !== null) {
$_SESSION["mailsonde"] = true; $_SESSION["mailsonde"] = true;
} else { } else {
$_SESSION["mailsonde"] = false; $_SESSION["mailsonde"] = false;