diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | lib/VNDB/Handler/ULists.pm | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +2.17 - ? + - Fixed perl warning on /u+/votes batchedit with nothing selected + 2.16 - 2011-01-02 - VNDBUtil::bb2html(): Fixed bug when the string starts with a VNDBID - VNDBUtil::bb2html(): Fixed bug with lowercasing all [url=..] URLs diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm index 403b391d..764d515b 100644 --- a/lib/VNDB/Handler/ULists.pm +++ b/lib/VNDB/Handler/ULists.pm @@ -135,7 +135,7 @@ sub votelist { { name => 'vid', required => 1, multi => 1, template => 'int' }, { name => 'batchedit', required => 1, enum => [ -2, -1, 1..10 ] }, ); - my @vid = grep $_ > 0, @{$frm->{vid}}; + my @vid = grep $_ && $_ > 0, @{$frm->{vid}}; if(!$frm->{_err} && @vid && $frm->{batchedit} > -2) { $self->dbVoteDel($id, \@vid) if $frm->{batchedit} == -1; $self->dbVoteAdd(\@vid, $id, $frm->{batchedit}) if $frm->{batchedit} >= 0; |