]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests 4142/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 29 Mar 2017 20:54:08 +0000 (22:54 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 29 Mar 2017 20:54:08 +0000 (22:54 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
core/js/jquery.avatar.js

index 703bd9fd7ddf9ba5f00d00eea8517be084111b7a..29d019baea7a84dcf39eb2757fbda5033f7061d6 100644 (file)
 
 (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) {