Fixing style errors.
This commit is contained in:
parent
9011b03528
commit
ada99b01f9
@ -1794,39 +1794,38 @@ class EmailCollector extends CommonObject
|
||||
$tickettocreate->ref = $defaultref;
|
||||
}
|
||||
// Create event specific on hook
|
||||
// this code action is hook..... for support this call
|
||||
elseif (substr($operation['type'],0,4) == 'hook'){
|
||||
global $hookmanager;
|
||||
// this code action is hook..... for support this call
|
||||
elseif (substr($operation['type'], 0, 4) == 'hook'){
|
||||
global $hookmanager;
|
||||
|
||||
if(!is_object($hookmanager))
|
||||
if(!is_object($hookmanager))
|
||||
$hookmanager->initHooks(array('emailcollectorcard'));
|
||||
|
||||
$parameters = array(
|
||||
$parameters = array(
|
||||
'connection'=> $connection,
|
||||
'imapemail'=>$imapemail,
|
||||
'overview'=>$overview,
|
||||
|
||||
'overview'=>$overview,
|
||||
|
||||
'from' => $from ,
|
||||
'fromtext' => $fromtext,
|
||||
|
||||
|
||||
'actionparam'=> $operation['actionparam'],
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'thirdpartyid' => $thirdpartyid ,
|
||||
'objectid'=>@$objectid,
|
||||
'objectemail'=>@$objectemail,
|
||||
|
||||
|
||||
'messagetext'=>$messagetext,
|
||||
'subject'=>$subject,
|
||||
'header'=>$header,
|
||||
) ;
|
||||
$res = $hookmanager->executeHooks('doCollectOneCollector', $parameters, $this, $operation['type']);
|
||||
|
||||
if($res < 0 )
|
||||
$this->error = $hookmanager->resPrint;
|
||||
$res = $hookmanager->executeHooks('doCollectOneCollector', $parameters, $this, $operation['type']);
|
||||
|
||||
}
|
||||
if($res < 0 )
|
||||
$this->error = $hookmanager->resPrint;
|
||||
}
|
||||
|
||||
if ($errorforthisaction)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user