diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php
index bef263763de..58710d9f0e4 100644
--- a/htdocs/core/tpl/login.tpl.php
+++ b/htdocs/core/tpl/login.tpl.php
@@ -136,22 +136,19 @@ if ($forgetpasslink || $helpcenterlink)
if ($forgetpasslink) {
echo '(';
echo $langs->trans('PasswordForgotten');
- if (! $helpcenterlink) {
- echo ')';
- }
+ if (! $helpcenterlink) echo ')';
echo '';
}
+ if ($forgetpasslink && $helpcenterlink) echo ' - ';
+
if ($helpcenterlink) {
$url=DOL_URL_ROOT.'/support/index.php'.$moreparam;
if (! empty($conf->global->MAIN_HELPCENTER_LINKTOUSE)) $url=$conf->global->MAIN_HELPCENTER_LINKTOUSE;
echo '';
- if ($forgetpasslink) {
- echo ' - ';
- } else {
- echo '(';
- }
- echo $langs->trans('NeedHelpCenter').')';
+ if (! $forgetpasslink) echo '(';
+ echo $langs->trans('NeedHelpCenter');
+ echo ')';
}
echo '';
}