fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-09-15 07:43 am

[dw-free] uninitialized values in LJ::S2Theme

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

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

Fix warnings in the logs

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/S2Theme.pm
--------------------------------------------------------------------------------
diff -r e6dfd07950be -r 1b26525eb6ac cgi-bin/LJ/S2Theme.pm
--- a/cgi-bin/LJ/S2Theme.pm	Thu Sep 15 15:40:28 2011 +0800
+++ b/cgi-bin/LJ/S2Theme.pm	Thu Sep 15 15:42:33 2011 +0800
@@ -470,7 +470,7 @@
     }
 
     # package name for the layout
-    my $layout_class = $self->{uniq} || $self->{layout_uniq};
+    my $layout_class = $self->{uniq} || $self->{layout_uniq} || '';
     $layout_class =~ s/\/.+//;
     $layout_class =~ s/-/_/g;
     $layout_class = "LJ::S2Theme::$layout_class";
--------------------------------------------------------------------------------

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