diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index a583f07cdb1..010e03e6b3b 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -879,7 +879,7 @@ class FormFile
$fulllink = $urlwithroot.'/document.php'.($paramlink ? '?'.$paramlink : '');
- $out .= img_picto($langs->trans("FileSharedViaALink"), 'globe').' ';
+ $out .= ''.img_picto($langs->trans("FileSharedViaALink"), 'globe').' ';
$out .= '';
$out .= ajax_autoselect('downloadlink'.$file['rowid']);
} else {
@@ -1407,7 +1407,7 @@ class FormFile
$fulllink = $urlwithroot.'/document.php'.($paramlink ? '?'.$paramlink : '');
- print img_picto($langs->trans("FileSharedViaALink"), 'globe').' ';
+ print ''.img_picto($langs->trans("FileSharedViaALink"), 'globe').' ';
print '';
} else {
//print ''.$langs->trans("FileNotShared").'';