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 = new AvatarLink();
|
||||||
$alink->url = $filename;
|
$alink->url = $filename;
|
||||||
$alink->height = $size;
|
$alink->height = $size;
|
||||||
|
$alink->width = $size;
|
||||||
if (!empty($filename)) {
|
if (!empty($filename)) {
|
||||||
$alink->width = $size;
|
|
||||||
$alink->type = self::mediatype($filename);
|
$alink->type = self::mediatype($filename);
|
||||||
} else {
|
} else {
|
||||||
$alink->url = User_group::defaultLogo($size);
|
$alink->url = User_group::defaultLogo($size);
|
||||||
|
Loading…
Reference in New Issue
Block a user