fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-06-16 01:13 am

[dw-free] Avoid warnings in the logs when userpic_position is not set

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

Avoid warnings in the logs when userpic_position is not set

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/S2.pm
--------------------------------------------------------------------------------
diff -r 7e93ae1209b9 -r a714f9c8ad4f cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm	Thu Jun 16 09:05:56 2011 +0800
+++ b/cgi-bin/LJ/S2.pm	Thu Jun 16 09:12:28 2011 +0800
@@ -2042,7 +2042,7 @@
 
     # loading S2 Userpic
     my $userpic;
-    my $userpic_position = S2::get_property_value( $opts->{ctx}, 'userpics_position' );
+    my $userpic_position = S2::get_property_value( $opts->{ctx}, 'userpics_position' ) || "";
     my $userpic_style;
 
     unless ( $userpic_position eq "none" ) {
--------------------------------------------------------------------------------

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