Update emailcollector.class.php

Enable to init hook to emailcollectorcard, when docollect is executed by cron task.
This commit is contained in:
Randall Mora 2022-01-15 15:37:31 -06:00 committed by GitHub
parent 5070a40fa4
commit 65e77d7795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2365,7 +2365,7 @@ class EmailCollector extends CommonObject
// this code action is hook..... for support this call
global $hookmanager;
if (!is_object($hookmanager)) {
if ( ! in_array('emailcollectorcard',$hookmanager->hooks)) {
$hookmanager->initHooks(array('emailcollectorcard'));
}