diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-29 22:54:08 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-29 22:54:08 +0200 |
commit | 0da04fd284c827e1d745fa372efd6587d165cddd (patch) | |
tree | ee6cdd37068821116616e5caa90f9c240d9c4245 | |
parent | 54c68519ce1cab9baaf86a29c7172811767d97c4 (diff) | |
download | nextcloud-server-0da04fd284c827e1d745fa372efd6587d165cddd.tar.gz nextcloud-server-0da04fd284c827e1d745fa372efd6587d165cddd.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | core/js/jquery.avatar.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 703bd9fd7dd..29d019baea7 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -48,8 +48,12 @@ (function ($) { $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) { - user = String(user); - displayname = String(displayname); + if (typeof(user) !== 'undefined') { + user = String(user); + } + if (typeof(displayname) !== 'undefined') { + displayname = String(displayname); + } if (typeof(size) === 'undefined') { if (this.height() > 0) { |