diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index c09affcb2b1..97c9aa1ef9c 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -196,7 +196,7 @@ class Conf } // Sharings between entities - if ($this->multicompany->enabled) + if ($this->multicompany->enabled && ! empty($multicompany_sharing)) { $ret = @dol_include_once('/multicompany/class/actions_multicompany.class.php'); if ($ret)