From 0e91b9e5ec4b1ecc3d86a5768e96171a529b958a Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Wed, 26 Feb 2020 07:20:08 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/admin/emailcollector_card.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/admin/emailcollector_card.php b/htdocs/admin/emailcollector_card.php index f08ff09b136..b149173904b 100644 --- a/htdocs/admin/emailcollector_card.php +++ b/htdocs/admin/emailcollector_card.php @@ -573,18 +573,18 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea 'recordevent'=>'RecordEvent'); if ($conf->projet->enabled) $arrayoftypes['project'] = 'CreateLeadAndThirdParty'; if ($conf->ticket->enabled) $arrayoftypes['ticket'] = 'CreateTicketAndThirdParty'; - - // support hook for add action + + // support hook for add action $parameters = array( 'arrayoftypes' => $arrayoftypes ) ; $res = $hookmanager->executeHooks('addMoreActionsEmailCollector', $parameters, $object, $action); - + if($res) - $arrayoftypes = $hookmanager->resArray; - else + $arrayoftypes = $hookmanager->resArray; + else foreach($hookmanager->resArray as $k=>$desc) - $arrayoftypes[$k]=$desc; - - + $arrayoftypes[$k]=$desc; + + print $form->selectarray('operationtype', $arrayoftypes, '', 1, 0, 0, '', 1, 0, 0, '', 'maxwidth300'); print ''; print '';