From c10f755619c17466b53ff0b11a40950bdc23c222 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 29 Aug 2019 00:19:46 +0200 Subject: [PATCH] Fix compatibility with old multicompany modules --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index f95ca35b8a3..d7c0e3100e8 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -105,7 +105,7 @@ function setEntity($currentobject) { global $conf, $mc; - if (is_object($mc)) + if (is_object($mc) && method_exists($mc, 'setEntity')) { return $mc->setEntity($currentobject); }