Removed not necessary 'if (empty(->hooks)) { ... } block.

This commit is contained in:
mgabriel 2023-02-15 15:15:57 +01:00
parent e0c7d60b4d
commit c9369415a2

View File

@ -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 = '';