Fix problem with AvatarLink in which it was sometimes leaving the width attribute empty

This commit is contained in:
Zach Copley 2010-06-16 18:27:51 -07:00
parent ba2bffa76e
commit a6ce4eef0d
1 changed files with 1 additions and 1 deletions

View File

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