From a691c8ebe9721c93c9cf6fd79bbde28111c734f3 Mon Sep 17 00:00:00 2001 From: Marc de Lima Lucio <68746600+marc-dll@users.noreply.github.com> Date: Tue, 19 Jul 2022 12:31:13 +0200 Subject: [PATCH] FIX: remove useless hookmanager init --- htdocs/core/class/html.form.class.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index b03aec90908..4acd0e1509f 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3179,13 +3179,6 @@ class Form $out .= ''; } - if (! is_object($hookmanager)) { - require_once DOL_DOCUMENT_ROOT . '/core/class/hookmanager.class.php'; - $hookmanager = new HookManager($this->db); - } - - $hookmanager->initHooks(array('form')); - $i = 0; while ($i < $num) { $objp = $this->db->fetch_object($result);