diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 62f552b7b80..1663b80ae70 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -12504,12 +12504,11 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = '', $n } $out .= $userGetNomUrlCache[$histo[$key]['userid']]; } - else if (!empty($histo[$key]['msg_from']) && $actionstatic->code == 'TICKET_MSG') { + elseif (!empty($histo[$key]['msg_from']) && $actionstatic->code == 'TICKET_MSG') { if (!isset($contactGetNomUrlCache[$histo[$key]['msg_from']])) { - if ($contactstatic->fetch(0,null,'',$histo[$key]['msg_from']) > 0) { + if ($contactstatic->fetch(0, null, '', $histo[$key]['msg_from']) > 0) { $contactGetNomUrlCache[$histo[$key]['msg_from']] = $contactstatic->getNomUrl(-1, '', 16); - } - else { + } else { $contactGetNomUrlCache[$histo[$key]['msg_from']] = $histo[$key]['msg_from']; } } diff --git a/htdocs/ticket/class/actions_ticket.class.php b/htdocs/ticket/class/actions_ticket.class.php index fb426d74e09..c566bf54329 100644 --- a/htdocs/ticket/class/actions_ticket.class.php +++ b/htdocs/ticket/class/actions_ticket.class.php @@ -306,7 +306,7 @@ class ActionsTicket if ($res) { print $userstat->getNomUrl(0); } - } else if (isset($arraymsgs['fk_contact_author'])) { + } elseif (isset($arraymsgs['fk_contact_author'])) { $contactstat = new Contact($this->db); $res = $contactstat->fetch(0, null, '', $arraymsgs['fk_contact_author']); if ($res) {