Merge pull request #19848 from randallmoraes/patch-3

Update emailcollector.class.php
This commit is contained in:
Laurent Destailleur 2022-01-23 13:42:34 +01:00 committed by GitHub
commit cff4222385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2365,8 +2365,9 @@ class EmailCollector extends CommonObject
// this code action is hook..... for support this call
global $hookmanager;
if (is_object($hookmanager)) {
$hookmanager->initHooks(array('emailcollectorcard'));
if (!is_object($hookmanager)) {
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
$hookmanager = new HookManager($this->db);
}
$parameters = array(