From: Zach Copley <zach@status.net>
Date: Thu, 17 Jun 2010 01:27:51 +0000 (-0700)
Subject: Fix problem with AvatarLink in which it was sometimes leaving the width attribute... 
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6ce4eef0df225dd863baf45d5615cbe22dcdea6;p=quix0rs-gnu-social.git

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

diff --git a/lib/avatarlink.php b/lib/avatarlink.php
index e67799e2eb..7d4256d6e1 100644
--- a/lib/avatarlink.php
+++ b/lib/avatarlink.php
@@ -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);