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 $langs, $conf;
|
||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
if (empty($hookmanager->hooks)) {
|
|
||||||
$hookmanager->initHooks(array('commonobject'));
|
|
||||||
}
|
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
$outarray = array();
|
$outarray = array();
|
||||||
|
|
||||||
@ -2907,10 +2903,6 @@ class Form
|
|||||||
global $langs, $conf, $user;
|
global $langs, $conf, $user;
|
||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
if (empty($hookmanager->hooks)) {
|
|
||||||
$hookmanager->initHooks(array('commonobject'));
|
|
||||||
}
|
|
||||||
|
|
||||||
$outkey = '';
|
$outkey = '';
|
||||||
$outval = '';
|
$outval = '';
|
||||||
$outref = '';
|
$outref = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user