From 528ce1da8e515deddb8398a2cd953a80cfbf9259 Mon Sep 17 00:00:00 2001 From: zamentur Date: Wed, 11 Jun 2014 00:43:59 +0200 Subject: [PATCH] Fix name input not present --- sources/infos_sondage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/infos_sondage.php b/sources/infos_sondage.php index e7b8482..237ded3 100644 --- a/sources/infos_sondage.php +++ b/sources/infos_sondage.php @@ -192,7 +192,7 @@ if ($erreur_injection_commentaires) { echo ''."\n"; echo ''. _("Your name*: ") .''; -if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) { +if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) && !empty($_SESSION["nom"])) { echo ''.stripslashes($_SESSION["nom"]).''."\n"; } else { echo ''."\n"; @@ -207,7 +207,7 @@ if (!$_SESSION["nom"] && issetAndNoEmpty("poursuivre")) { echo ''."\n"; echo ''. _("Your e-mail address *: ") .''; -if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) { +if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) && !empty($_SESSION["adresse"])) { echo ''.$_SESSION["adresse"].''."\n"; } else { echo ''."\n";