diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 1abe70b79e..703bd9fd7d 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -48,6 +48,9 @@ (function ($) { $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) { + user = String(user); + displayname = String(displayname); + if (typeof(size) === 'undefined') { if (this.height() > 0) { size = this.height();