From e7a4ea6b253ae7beee44c2632c542c59eec42c72 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 19 Sep 2022 12:59:40 +0200 Subject: [PATCH] debug --- gestionsite/modifVotation.php | 2 +- gestionsite/saisieVotes.php | 2 +- include/fonctions.inc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gestionsite/modifVotation.php b/gestionsite/modifVotation.php index da59562..f7decf2 100644 --- a/gestionsite/modifVotation.php +++ b/gestionsite/modifVotation.php @@ -30,7 +30,7 @@ if (empty($action)) if (empty($idVotation)) { // choix de la votation à cloturer - choixVotation('./modifVotation.php',1 ); + choixVotation('./modifVotation.php', 0); }else { //TODO alert "Do you want to delete ..." diff --git a/gestionsite/saisieVotes.php b/gestionsite/saisieVotes.php index 62d9266..06744dc 100644 --- a/gestionsite/saisieVotes.php +++ b/gestionsite/saisieVotes.php @@ -23,7 +23,7 @@ if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation)) if (empty($idVotation)) { - choixVotation($path, 1, false); + choixVotation($path, 0, false); }else { $method = getpost("method"); diff --git a/include/fonctions.inc.php b/include/fonctions.inc.php index 78c7c90..15ab3bc 100644 --- a/include/fonctions.inc.php +++ b/include/fonctions.inc.php @@ -44,7 +44,7 @@ function mb_ucfirst($str) return $char . $str; } -function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les votations 1 = votations en cours 0 = votations cloturées +function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les votations 0 = votations en cours 1 = votations cloturées { global $base_url, $action;