diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 75a9c9a60cf..11e54b35ee0 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -730,7 +730,7 @@ if ($action == 'create') $listetype=$adht->liste_array(); if (count($listetype)) { - print $form->selectarray("typeid", $listetype, GETPOST('typeid','int')?GETPOST('typeid','int'):$typeid, 1); + print $form->selectarray("typeid", $listetype, GETPOST('typeid','int')?GETPOST('typeid','int'):$typeid, count($listetype)>1?1:0); } else { print ''.$langs->trans("NoTypeDefinedGoToSetup").''; } diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php index fff160275bb..291367bd6ab 100644 --- a/htdocs/adherents/index.php +++ b/htdocs/adherents/index.php @@ -247,7 +247,7 @@ if ($resql) $statictype->libelle=$obj->libelle; print '