Fix: Var not always initialized
This commit is contained in:
parent
13d5a2e12c
commit
c107697dc1
@ -658,8 +658,8 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disable
|
|||||||
if (! class_exists('HookManager')) {
|
if (! class_exists('HookManager')) {
|
||||||
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
|
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
|
||||||
require DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
|
require DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
|
||||||
$hookmanager=new HookManager($db);
|
|
||||||
}
|
}
|
||||||
|
$hookmanager=new HookManager($db);
|
||||||
}
|
}
|
||||||
$hookmanager->initHooks(array('fileslib'));
|
$hookmanager->initHooks(array('fileslib'));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user