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

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