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); }