[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
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3196
Hush warning.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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; --------------------------------------------------------------------------------