summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/ULists.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-19 19:27:48 +0100
committerYorhel <git@yorhel.nl>2010-12-19 19:27:48 +0100
commita1db0a213b9f1ea0d4d9f75e4014af6c156b493c (patch)
treeace0054d1984b5da6147ec0a7c0cc6b4f535ee86 /lib/VNDB/Handler/ULists.pm
parent720ab3e394547b1fa82b42fbefd36bb4abb81cb0 (diff)
ULists::votelist: Don't give a 404 on /u+/votes when no votes found
Diffstat (limited to 'lib/VNDB/Handler/ULists.pm')
-rw-r--r--lib/VNDB/Handler/ULists.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm
index d13c63cb..660ece00 100644
--- a/lib/VNDB/Handler/ULists.pm
+++ b/lib/VNDB/Handler/ULists.pm
@@ -134,16 +134,17 @@ sub votelist {
results => 50,
page => $f->{p}
);
- return 404 if !@$list;
+ return 404 if !@$list && $type eq 'v';
my $title = mt $type eq 'v' ? '_votelist_title_vn' : '_votelist_title_user', $obj->{title} || $obj->{username};
$self->htmlHeader(noindex => 1, title => $title);
$self->htmlMainTabs($type => $obj, 'votes');
div class => 'mainbox';
h1 $title;
+ p mt '_votelist_novotes' if !@$list;
end;
- $self->htmlBrowse(
+ @$list && $self->htmlBrowse(
class => 'votelist',
items => $list,
options => $f,