Removed not necessary 'if (empty(->hooks)) { ... } block.
This commit is contained in:
parent
e0c7d60b4d
commit
c9369415a2
@ -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 = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user