diff --git a/htdocs/hrm/establishment/card.php b/htdocs/hrm/establishment/card.php
index 1fe67dd0bd1..396c158998c 100644
--- a/htdocs/hrm/establishment/card.php
+++ b/htdocs/hrm/establishment/card.php
@@ -178,7 +178,7 @@ if ($action == 'create') {
// Entity
/*
- if (! empty($conf->multicompany->enabled)) {
+ if (isModEnabled('multicompany')) {
print '
';
print '| '.$form->editfieldkey('Parent', 'entity', '', $object, 0, 'string', '', 1).' | ';
print '';
@@ -282,7 +282,7 @@ if (($id || $ref) && $action == 'edit') {
// Entity
/*
- if (! empty($conf->multicompany->enabled)) {
+ if (isModEnabled('multicompany')) {
print ' |
| '.$form->editfieldkey('Parent', 'entity', '', $object, 0, 'string', '', 1).' | ';
print '';
print $object->entity > 0 ? $object->entity : $conf->entity;
|