diff options
-rw-r--r-- | public/js/extra.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index fd9fba6b..79364d11 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -30,7 +30,8 @@ function updateLastChangeUser() { if (lastchangeuser && lastchangeuserprofile) { var icon = lastchangeui.user.children('i'); icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle'); - icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')'); + if (lastchangeuserprofile.photo) + icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')'); lastchangeui.user.show(); lastchangeui.nouser.hide(); } else { |