mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix missing $db
This commit is contained in:
parent
66f85d674d
commit
6829507372
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user