summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/js/jquery.avatar.js7
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();