Fix missing $db

This commit is contained in:
Laurent Destailleur 2021-11-07 17:44:34 +01:00
parent 66f85d674d
commit 6829507372

View File

@ -106,7 +106,7 @@ function getDoliDBInstance($type, $host, $user, $pass, $name, $port)
*/
function getEntity($element, $shared = 1, $currentobject = null)
{
global $conf, $mc, $hookmanager, $object, $action;
global $conf, $mc, $hookmanager, $object, $action, $db;
if (! is_object($hookmanager)) {
$hookmanager = new HookManager($db);