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

[dw-free] some poll votes send numerous repeat notifications

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

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

Hush warning.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Poll.pm
--------------------------------------------------------------------------------
diff -r 97837011e5e2 -r 4b6fedbcf117 cgi-bin/LJ/Poll.pm
--- a/cgi-bin/LJ/Poll.pm	Wed Nov 24 19:34:01 2010 +0800
+++ b/cgi-bin/LJ/Poll.pm	Wed Nov 24 19:34:56 2010 +0800
@@ -1437,6 +1437,9 @@ sub process_submission {
             }
         }
 
+        # if $val is still undef here, set it to empty string
+        $val = "" unless defined $val;
+
         # see if the vote changed values
         my $changed = 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