Fix: Missing test if module supplier is on

This commit is contained in:
Laurent Destailleur 2011-01-23 16:56:26 +00:00
parent 820722f113
commit 4f64548061

View File

@ -58,7 +58,7 @@ function societe_prepare_head($object)
$head[$h][2] = 'customer';
$h++;
}
if ($object->fournisseur || $object->object->fournisseur)
if ($conf->fournisseur->enabled && ($object->fournisseur || $object->object->fournisseur))
{
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$object->id;
$head[$h][1] = $langs->trans("Supplier");