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

View File

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