From 1e8adfa5d586ba57c8389cfcf34f91355e1294f8 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 19 Sep 2022 16:12:51 +0200 Subject: [PATCH] debug --- gestionsite/saisieVotes.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gestionsite/saisieVotes.php b/gestionsite/saisieVotes.php index 22c8fda..6a4b90a 100644 --- a/gestionsite/saisieVotes.php +++ b/gestionsite/saisieVotes.php @@ -23,8 +23,11 @@ if (!empty($idVotation)) $votationName = queryVotationName($db, $idVotation); }elseif (array_key_exists("idVotation", $GLOBALS)) { - $idVotation = $GLOBALS["idVotation"]; - $votationName = queryVotationName($db, $idVotation); + if (!empty($GLOBALS["idVotation"])) + { + $idVotation = $GLOBALS["idVotation"]; + $votationName = queryVotationName($db, $idVotation); + } } print('