diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index dcdbc174e4d..1643ee807a5 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -1133,22 +1133,22 @@ else print ''; print ''; - } - // Category - if ($soc->fournisseur) - { - $load = $soc->LoadSupplierCateg(); - if ( $load == 0) - { - if (sizeof($soc->SupplierCategories) > 0) - { - print ''; - print ''.$langs->trans('SupplierCategory').''; - print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1); - print ''; - } - } + // Category + if ($conf->categorie->enabled && $soc->fournisseur) + { + $load = $soc->LoadSupplierCateg(); + if ( $load == 0) + { + if (sizeof($soc->SupplierCategories) > 0) + { + print ''; + print ''.$langs->trans('SupplierCategory').''; + print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1); + print ''; + } + } + } } if ($conf->global->MAIN_MODULE_BARCODE)