From 711aff9ff7c63d3e3bca76ec38bb7286370c38e1 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Mon, 16 Mar 2020 08:56:10 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/core/tpl/contacts.tpl.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/tpl/contacts.tpl.php b/htdocs/core/tpl/contacts.tpl.php index 104ffe81bc6..9e57a2c5746 100644 --- a/htdocs/core/tpl/contacts.tpl.php +++ b/htdocs/core/tpl/contacts.tpl.php @@ -189,7 +189,7 @@ foreach(array('internal', 'external') as $source) { $entry->nature = $langs->trans("User"); } - else if ($contact['source'] == 'external') + elseif ($contact['source'] == 'external') { $entry->nature = $langs->trans("ThirdPartyContact"); } @@ -200,7 +200,7 @@ foreach(array('internal', 'external') as $source) $entry->thirdparty_html = $companystatic->getNomUrl(1); $entry->thirdparty_name = strtolower($companystatic->getFullName($langs)); } - else if ($contact['socid'] < 0) + elseif ($contact['socid'] < 0) { $entry->thirdparty_html = $conf->global->MAIN_INFO_SOCIETE_NOM; $entry->thirdparty_name = strtolower($conf->global->MAIN_INFO_SOCIETE_NOM); @@ -212,7 +212,7 @@ foreach(array('internal', 'external') as $source) $entry->contact_html = $userstatic->getNomUrl(-1, '', 0, 0, 0, 0, '', 'valignmiddle'); $entry->contact_name = strtolower($userstatic->getFullName($langs)); } - else if ($contact['source'] == 'external') + elseif ($contact['source'] == 'external') { $contactstatic->fetch($contact['id']); $entry->contact_html = $contactstatic->getNomUrl(1, '', 0, '', 0, 0); @@ -223,7 +223,7 @@ foreach(array('internal', 'external') as $source) { $entry->status = $userstatic->LibStatut($contact['statuscontact'], 3); } - else if ($contact['source'] == 'external') + elseif ($contact['source'] == 'external') { $entry->status = $contactstatic->LibStatut($contact['statuscontact'], 3); }