diff options
author | Yorhel <git@yorhel.nl> | 2010-12-19 19:27:48 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-19 19:27:48 +0100 |
commit | a1db0a213b9f1ea0d4d9f75e4014af6c156b493c (patch) | |
tree | ace0054d1984b5da6147ec0a7c0cc6b4f535ee86 /lib/VNDB/Handler/ULists.pm | |
parent | 720ab3e394547b1fa82b42fbefd36bb4abb81cb0 (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.pm | 5 |
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, |