forked from GNUsocial/gnu-social
Fix problem with AvatarLink in which it was sometimes leaving the width attribute empty
This commit is contained in:
parent
ba2bffa76e
commit
a6ce4eef0d
@ -76,8 +76,8 @@ class AvatarLink
|
||||
$alink = new AvatarLink();
|
||||
$alink->url = $filename;
|
||||
$alink->height = $size;
|
||||
$alink->width = $size;
|
||||
if (!empty($filename)) {
|
||||
$alink->width = $size;
|
||||
$alink->type = self::mediatype($filename);
|
||||
} else {
|
||||
$alink->url = User_group::defaultLogo($size);
|
||||
|
Loading…
Reference in New Issue
Block a user