From efba39310e2efe5d48ed8edfca3521662b13b743 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?=
 <marcosgdf@gmail.com>
Date: Sat, 4 Jan 2014 15:47:47 +0100
Subject: [PATCH] Some session variables were not properly unset

---
 htdocs/opensurvey/fonctions.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/htdocs/opensurvey/fonctions.php b/htdocs/opensurvey/fonctions.php
index bbd2a478817..d3f1069babb 100644
--- a/htdocs/opensurvey/fonctions.php
+++ b/htdocs/opensurvey/fonctions.php
@@ -298,6 +298,10 @@ function ajouter_sondage($origin)
 	unset($_SESSION["mailsonde"]);
 	unset($_SESSION['allow_comments']);
 	unset($_SESSION['allow_spy']);
+	unset($_SESSION['toutchoix']);
+	unset($_SESSION['caneditsondage']);
+	unset($_SESSION['totalchoixjour']);
+	unset($_SESSION['champdatefin']);
 
 	header("Location: ".$urlback);
 	exit();
-- 
GitLab