From c9369415a226b681783f5b906f783b0a41d05249 Mon Sep 17 00:00:00 2001 From: mgabriel Date: Wed, 15 Feb 2023 15:15:57 +0100 Subject: [PATCH] Removed not necessary 'if (empty(->hooks)) { ... } block. --- htdocs/core/class/html.form.class.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 5e5b1920b6b..eb0cfed4fea 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2546,10 +2546,6 @@ class Form global $langs, $conf; global $hookmanager; - if (empty($hookmanager->hooks)) { - $hookmanager->initHooks(array('commonobject')); - } - $out = ''; $outarray = array(); @@ -2907,10 +2903,6 @@ class Form global $langs, $conf, $user; global $hookmanager; - if (empty($hookmanager->hooks)) { - $hookmanager->initHooks(array('commonobject')); - } - $outkey = ''; $outval = ''; $outref = '';