diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index c9b336725f5..c5c9f7164ec 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4977,7 +4977,7 @@ class Form
if (!empty($input['label'])) {
$more .= $input['label'].'
';
}
- $more .= $this->selectarray($input['name'], $input['values'], $input['default'], $show_empty, $key_in_label, $value_as_key, $moreattr, $translate, $maxlen, $disabled, $sort, $morecss);
+ $more .= $this->selectarray($input['name'], $input['values'], isset($input['default'])?$input['default']:'', $show_empty, $key_in_label, $value_as_key, $moreattr, $translate, $maxlen, $disabled, $sort, $morecss);
$more .= '
'."\n";
} elseif ($input['type'] == 'checkbox') {
$more .= '';