summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-05 10:57:17 +0200
committerYorhel <git@yorhel.nl>2019-10-05 10:57:17 +0200
commit1bed2ce042bab94823550cd90b4e0883710e65de (patch)
treeed39c792dec1f874ff9d9a33fbdc624f8d93fb01 /lib
parente94aef50e3f57a8c58656840f3a35b74906b86ab (diff)
Handler::VNPage: Fix default tag categories when not logged in
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/VNPage.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index d716c74e..2849f820 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -457,7 +457,8 @@ sub page {
if(@$t) {
div id => 'tagops';
for (keys %TAG_CATEGORY) {
- input id => "cat_$_", type => 'checkbox', class => 'visuallyhidden', $self->authPref("tags_$_") ? (checked => 'checked') : ();
+ input id => "cat_$_", type => 'checkbox', class => 'visuallyhidden',
+ ($self->authInfo->{id} ? $self->authPref("tags_$_") : $_ ne 'ero') ? (checked => 'checked') : ();
label for => "cat_$_", lc $TAG_CATEGORY{$_};
}
my $spoiler = $self->authPref('spoilers') || 0;