summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/ULists.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-02 15:02:43 +0100
committerYorhel <git@yorhel.nl>2011-01-02 15:02:43 +0100
commited1d4129851619863be0e9a20a5c6d61bb39f617 (patch)
tree09a67fd14cca39467a0a3dd949fd0142fd3f390b /lib/VNDB/Handler/ULists.pm
parentb4e3c35620916852a6028ab5f6644382553408f9 (diff)
Fixed perl warning on /u+/votes batchedit with nothing selected
Diffstat (limited to 'lib/VNDB/Handler/ULists.pm')
-rw-r--r--lib/VNDB/Handler/ULists.pm2
1 files changed, 1 insertions, 1 deletions
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;