mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-05-10 06:48 am

[dw-free] 1st icon user loaded displays as default instead of chosen default icon

[commit: http://hg.dwscoalition.org/dw-free/rev/a338a9f322e8]

http://bugs.dwscoalition.org/show_bug.cgi?id=998

Properly display default usericon.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/Userpic.pm
--------------------------------------------------------------------------------
diff -r 183f37b5391e -r a338a9f322e8 cgi-bin/LJ/Userpic.pm
--- a/cgi-bin/LJ/Userpic.pm	Sun May 10 06:45:23 2009 +0000
+++ b/cgi-bin/LJ/Userpic.pm	Sun May 10 06:48:37 2009 +0000
@@ -73,7 +73,7 @@ sub get {
 
     if (@cache) {
         foreach my $curr (@cache) {
-            return LJ::Userpic->new( $u, $curr->{picid} ) if $curr->{picid};
+            return LJ::Userpic->new( $u, $curr->{picid} ) if $curr->{picid} == $picid;
         }
     }
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org