From c107697dc1d0ca9b6bd1357af56b5d7c4a87f994 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Dec 2012 18:14:21 +0100 Subject: [PATCH] Fix: Var not always initialized --- htdocs/core/lib/files.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index d263748c2af..1ff48ef858a 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -658,8 +658,8 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disable if (! class_exists('HookManager')) { // 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'; - $hookmanager=new HookManager($db); } + $hookmanager=new HookManager($db); } $hookmanager->initHooks(array('fileslib'));