diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index aa2e7d0504d..4989d21688f 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -38,10 +38,10 @@ if ($_POST["action"] == 'add' && $user->admin)
$adht = new AdherentType($db);
$adht->libelle = $_POST["libelle"];
- $adht->cotisation = $_POST["cotisation"];
+ $adht->cotisation = $yesno[$_POST["cotisation"]];
$adht->commentaire = $_POST["comment"];
$adht->mail_valid = $_POST["mail_valid"];
- $adht->vote = $_POST["vote"];
+ $adht->vote = $yesno[$_POST["vote"]];
if ($_POST["libelle"]) { $adht->create($user->id); }
}
@@ -54,10 +54,10 @@ if ($_POST["action"] == 'update' && $user->admin)
$adht = new AdherentType($db);
$adht->id = $_POST["rowid"];;
$adht->libelle = $_POST["libelle"];
- $adht->cotisation = $_POST["cotisation"];
+ $adht->cotisation = $yesno[$_POST["cotisation"]];
$adht->commentaire = $_POST["comment"];
$adht->mail_valid = $_POST["mail_valid"];
- $adht->vote = $_POST["vote"];
+ $adht->vote = $yesno[$_POST["vote"]];
$adht->update($user->id);
}
@@ -148,26 +148,25 @@ else
if ($_GET["action"] == 'create') {
+ $htmls = new Form($db);
print_titre("Nouveau type");
print '
';
print "