diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php
index 2bb44c8a99c..9fd385b2d3b 100644
--- a/htdocs/admin/mails.php
+++ b/htdocs/admin/mails.php
@@ -1217,7 +1217,7 @@ if ($action == 'edit') {
// References
if (!empty($user->admin)) {
print '
';
- print ''.$langs->trans("EMailsWillHaveMessageID").': ';
+ print ''.$langs->trans("EMailsWillHaveMessageID").': ';
print dol_escape_htmltag('');
print '';
}
diff --git a/htdocs/core/tpl/formlayoutai.tpl.php b/htdocs/core/tpl/formlayoutai.tpl.php
index c27fe7c2b9c..fa357f8270e 100644
--- a/htdocs/core/tpl/formlayoutai.tpl.php
+++ b/htdocs/core/tpl/formlayoutai.tpl.php
@@ -65,7 +65,7 @@ if (!isset($out)) { // Init to empty string if not defined
if ($showlinktolayout) { // May be set only if MAIN_EMAIL_USE_LAYOUT is set
$out .= '';
$out .= img_picto($showlinktolayoutlabel, 'layout', 'class="paddingrightonly"');
- $out .= $showlinktolayoutlabel.'...';
+ $out .= ''.$showlinktolayoutlabel.'...';
$out .= ' ';
$out .= '