Update emailcollector.class.php
This commit is contained in:
parent
45666e7f0a
commit
20ac994d0d
@ -2365,8 +2365,9 @@ class EmailCollector extends CommonObject
|
|||||||
// this code action is hook..... for support this call
|
// this code action is hook..... for support this call
|
||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
if ( ! in_array('emailcollectorcard', $hookmanager->hooks)) {
|
if (!is_object($hookmanager)) {
|
||||||
$hookmanager->initHooks(array('emailcollectorcard'));
|
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
|
||||||
|
$hookmanager = new HookManager($this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user