Fix: Hide if supplier module is disabled

This commit is contained in:
Laurent Destailleur 2011-01-26 19:42:01 +00:00
parent fe75e417ef
commit 7bcffa5f2c

View File

@ -1133,22 +1133,22 @@ else
print '</td></tr></table>';
print '</td></tr>';
}
// Category
if ($soc->fournisseur)
{
$load = $soc->LoadSupplierCateg();
if ( $load == 0)
{
if (sizeof($soc->SupplierCategories) > 0)
{
print '<tr>';
print '<td>'.$langs->trans('SupplierCategory').'</td><td colspan="3">';
print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
print '</td></tr>';
}
}
// Category
if ($conf->categorie->enabled && $soc->fournisseur)
{
$load = $soc->LoadSupplierCateg();
if ( $load == 0)
{
if (sizeof($soc->SupplierCategories) > 0)
{
print '<tr>';
print '<td>'.$langs->trans('SupplierCategory').'</td><td colspan="3">';
print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
print '</td></tr>';
}
}
}
}
if ($conf->global->MAIN_MODULE_BARCODE)