Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-03-29 22:54:08 +02:00
parent 54c68519ce
commit 0da04fd284
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 6 additions and 2 deletions

View File

@ -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) {