diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 8e1639aa52d..1465062d9f1 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -852,11 +852,9 @@ if ($_GET["id"] || $_GET["ref"]) { if (empty($usecanvas)) { - if ($product->isservice()) { - print_fiche_titre($langs->trans('Modify').' '.$langs->trans('Service').' : '.$product->ref, ""); - } else { - print_fiche_titre($langs->trans('Modify').' '.$langs->trans('Product').' : '.$product->ref, ""); - } + $type = $langs->trans('Product'); + if ($product->isservice()) $type = $langs->trans('Service'); + print_fiche_titre($langs->trans('Modify').' '.$type.' : '.$product->ref, ""); if ($mesg) { print '
'.$mesg.'

';