diff --git a/core/js/share.js b/core/js/share.js
index 35214fb11b..240fc0fb76 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -295,7 +295,7 @@ OC.Share = _.extend(OC.Share || {}, {
recipients = $tr.attr('data-share-recipients');
action.addClass('shared-style');
- message = t('core', 'Shared');
+ avatars = '' + t('core', 'Shared') + '';
// even if reshared, only show "Shared by"
if (owner) {
message = t('core', 'Shared by ');
@@ -312,8 +312,7 @@ OC.Share = _.extend(OC.Share || {}, {
action.find('.remoteAddress').tooltip({placement: 'top'});
}
- }
- else {
+ } else {
action.html('' + t('core', 'Shared') + '').prepend(icon);
}
if (hasLink) {