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)
|
function getEntity($element, $shared = 1, $currentobject = null)
|
||||||
{
|
{
|
||||||
global $conf, $mc, $hookmanager, $object, $action;
|
global $conf, $mc, $hookmanager, $object, $action, $db;
|
||||||
|
|
||||||
if (! is_object($hookmanager)) {
|
if (! is_object($hookmanager)) {
|
||||||
$hookmanager = new HookManager($db);
|
$hookmanager = new HookManager($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user