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

[dw-free] warnings roundup for Jan 2011

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

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

Use variable which is initialized to an empty string when not defined, to
avoid warnings.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Talk.pm
--------------------------------------------------------------------------------
diff -r a3b3c0437d59 -r bddd722b57e1 cgi-bin/LJ/Talk.pm
--- a/cgi-bin/LJ/Talk.pm	Mon Jan 24 14:42:12 2011 +0800
+++ b/cgi-bin/LJ/Talk.pm	Mon Jan 24 14:44:27 2011 +0800
@@ -1729,7 +1729,7 @@ sub talkform {
         my $cookieuser = defined $form->{cookieuser} ? $form->{cookieuser} : '';
 
         if ( $userpost ne $cookieuser && $usertype ne 'anonymous' ) {
-            $ljuser_def = BML::eall( $form->{userpost} );
+            $ljuser_def = BML::eall( $userpost );
         } else {
             $ljuser_def = $remote->user;
         }
--------------------------------------------------------------------------------