diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index e92060d9e11..884177b7df9 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -346,7 +346,7 @@ if ($action == 'create')
$morphys["phy"] = $langs->trans("Physical");
$morphys["mor"] = $langs->trans("Moral");
print '
| '.$langs->trans("MemberNature").' | ';
- print $form->selectarray("morphy", $morphys, isset($_POST["morphy"]) ? $_POST["morphy"] : $object->morphy);
+ print $form->selectarray("morphy", $morphys, GETPOSTISSET("morphy") ? GETPOST("morphy", 'aZ09') : 'morphy' : $object->morphy);
print " |
";
print '| '.$langs->trans("SubscriptionRequired").' | ';
@@ -354,12 +354,12 @@ if ($action == 'create')
print ' |
';
print '| '.$langs->trans("VoteAllowed").' | ';
- print $form->selectyesno("vote", 0, 1);
+ print $form->selectyesno("vote", GETPOSTISSET("vote") ? GETPOST('vote', 'aZ09') : 1, 1);
print ' |
';
print '| '.$langs->trans("Duration").' | ';
- print ' ';
- print $formproduct->selectMeasuringUnits("duration_unit", "time", $_POST["duration_unit"], 0, 1);
+ print ' ';
+ print $formproduct->selectMeasuringUnits("duration_unit", "time", GETPOSTISSET("duration_unit") ? GETPOST('duration_unit', 'aZ09') : 'y', 0, 1);
print ' |
';
print '| '.$langs->trans("Description").' | ';
|