Skip to content

Commit

Permalink
Fix: Missing test if module supplier is on
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 23, 2011
1 parent 820722f commit 4f64548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/lib/company.lib.php
Expand Up @@ -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");
Expand Down

0 comments on commit 4f64548

Please sign in to comment.