diff options
-rw-r--r-- | core/js/jquery.avatar.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 1abe70b79ea..29d019baea7 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -48,6 +48,13 @@ (function ($) { $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) { + if (typeof(user) !== 'undefined') { + user = String(user); + } + if (typeof(displayname) !== 'undefined') { + displayname = String(displayname); + } + if (typeof(size) === 'undefined') { if (this.height() > 0) { size = this.height(); |