kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2012-02-01 07:09 am

[dw-free] undefined string warning in LJ/Widget/Login.pm

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

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

Avoid one more undefined string warning.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Widget/Login.pm
--------------------------------------------------------------------------------
diff -r 8b78cdfc4bc2 -r 3b2f54bcab45 cgi-bin/LJ/Widget/Login.pm
--- a/cgi-bin/LJ/Widget/Login.pm	Wed Feb 01 00:45:26 2012 +0000
+++ b/cgi-bin/LJ/Widget/Login.pm	Wed Feb 01 01:11:19 2012 -0600
@@ -28,7 +28,7 @@
     return "" if $remote;
 
     my $nojs = $opts{nojs};
-    my $user = $opts{user};
+    my $user = $opts{user} || '';
     my $mode = $opts{mode} || '';
 
     my $getextra = $nojs ? '?nojs=1' : '';
--------------------------------------------------------------------------------

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