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,10 +1133,9 @@ else
print '</td></tr></table>'; print '</td></tr></table>';
print '</td></tr>'; print '</td></tr>';
}
// Category // Category
if ($soc->fournisseur) if ($conf->categorie->enabled && $soc->fournisseur)
{ {
$load = $soc->LoadSupplierCateg(); $load = $soc->LoadSupplierCateg();
if ( $load == 0) if ( $load == 0)
@ -1150,6 +1149,7 @@ else
} }
} }
} }
}
if ($conf->global->MAIN_MODULE_BARCODE) if ($conf->global->MAIN_MODULE_BARCODE)
{ {