diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 80752a2090a..9e6b247d178 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -7622,7 +7622,7 @@ class Form $resql = $db->query($sql); if ($resql) { - $out = ''; if ($useempty) $out .= ''; while ($obj = $db->fetch_object($resql)) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 59584562dff..192cfcdc570 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -2290,7 +2290,7 @@ if ($action == 'create') // Select type print ''; - select_type_fees_id($line->fk_c_type_fees, 'fk_c_type_fees'); + print select_type_fees_id($line->fk_c_type_fees, 'fk_c_type_fees'); print ''; if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) @@ -2449,7 +2449,7 @@ if ($action == 'create') // Select type print ''; - select_type_fees_id($fk_c_type_fees, 'fk_c_type_fees', 1); + print select_type_fees_id($fk_c_type_fees, 'fk_c_type_fees', 1); print ''; if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index e2ea2b377a4..90f063e8ae0 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -2774,12 +2774,14 @@ function select_type_fees_id($selected = '', $htmlname = 'type', $showempty = 0, global $db, $langs, $user; $langs->load("trips"); - print ''; if ($showempty) { - print ''; + $out .= '