diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php index 24b34dc5ccc..8696b27e521 100644 --- a/htdocs/product/admin/product.php +++ b/htdocs/product/admin/product.php @@ -338,7 +338,7 @@ foreach ($dirproduct as $dirroot) { print "\n"; } else { $disabled = false; - if (!empty($conf->multicompany->enabled) && (is_object($mc) && !empty($mc->sharings['referent']) && $mc->sharings['referent'] == $conf->entity) ? false : true) { + if (isModEnabled('multicompany') && (is_object($mc) && !empty($mc->sharings['referent']) && $mc->sharings['referent'] == $conf->entity) ? false : true) { } print '