Fix: remove slash if shipment is disabled

This commit is contained in:
Regis Houssin 2011-05-21 10:18:19 +00:00
parent cc1646f3fd
commit 32007f355b

View File

@ -49,7 +49,8 @@ function commande_prepare_head($object)
{
$head[$h][0] = DOL_URL_ROOT.'/expedition/shipment.php?id='.$object->id;
if ($conf->expedition_bon->enabled) $text=$langs->trans("Sendings");
if ($conf->livraison_bon->enabled) $text.='/'.$langs->trans("Receivings");
if ($conf->expedition_bon->enabled && $conf->livraison_bon->enabled) $text.='/';
if ($conf->livraison_bon->enabled) $text.=$langs->trans("Receivings");
$head[$h][1] = $text;
$head[$h][2] = 'shipping';
$h++;