Skip to content

Commit 5bb4423

Browse files
committed
Fix to handle if last change user profile photo is null
1 parent c8560ec commit 5bb4423

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public/js/extra.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function updateLastChangeUser() {
3030
if (lastchangeuser && lastchangeuserprofile) {
3131
var icon = lastchangeui.user.children('i');
3232
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
33-
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
33+
if (lastchangeuserprofile.photo)
34+
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
3435
lastchangeui.user.show();
3536
lastchangeui.nouser.hide();
3637
} else {

0 commit comments

Comments
 (0)