Update emailcollector.class.php
Enable to init hook to emailcollectorcard, when docollect is executed by cron task.
This commit is contained in:
parent
5070a40fa4
commit
65e77d7795
@ -2365,7 +2365,7 @@ 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 (!is_object($hookmanager)) {
|
if ( ! in_array('emailcollectorcard',$hookmanager->hooks)) {
|
||||||
$hookmanager->initHooks(array('emailcollectorcard'));
|
$hookmanager->initHooks(array('emailcollectorcard'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user