diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php
index 42f2430a9cf..0024da06942 100644
--- a/htdocs/adherents/liste.php
+++ b/htdocs/adherents/liste.php
@@ -230,7 +230,7 @@ if ($resql)
print '
';
$listetype=$membertypestatic->liste_array();
- $form->select_array("type", $listetype, $_REQUEST["type"], 1, 0, 0, 0, '', 0, 12);
+ $form->selectarray("type", $listetype, $_REQUEST["type"], 1, 0, 0, '', 0, 12);
print ' | ';
print ' | ';
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index 14434a20ee3..f344d4dd0a8 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -457,13 +457,6 @@ if ($rowid > 0)
print '';
print ' | ';
- // Type
- /*print '';
- $listetype=$membertypestatic->liste_array();
- $form->select_array("type", $listetype, $_REQUEST["type"], 1, 0, 0, 0, '', 0, 12);
- print ' | ';
- */
-
print ' | ';
print '';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index b05b5628662..9b21fba3eda 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -2727,21 +2727,13 @@ class Form
* \param disabled Html select box is disabled
* \return string HTML select string
*/
- function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0, $maxlen=0, $disabled=0)
+ function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $option='', $translate=0, $maxlen=0, $disabled=0)
{
global $langs;
$out='';
- // \TODO Simplify optionType and option (only one should be necessary)
- if ($optionType == 1 && $option != '')
- {
- $out.=' |