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");