From cf526f166c3e394c2786611a8647466c2adfccb0 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 19 Sep 2022 11:35:05 +0200 Subject: [PATCH] bug --- gestionsite/saisieVotes.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gestionsite/saisieVotes.php b/gestionsite/saisieVotes.php index 761758f..fec7412 100644 --- a/gestionsite/saisieVotes.php +++ b/gestionsite/saisieVotes.php @@ -16,15 +16,14 @@ print('
$path = $_SERVER["PHP_SELF"]; $idVotation = getpost("id"); +if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation)) +{ + $idVotation = $GLOBALS["idVotation"]; +} + if (empty($idVotation)) { - if (array_key_exists("idVotation", $GLOBALS)) - { - $idVotation = $GLOBALS["idVotation"]; - }else - { - choixVotation($path); - } + choixVotation($path); } $method = getpost("method");