diff options
author | Yorhel <git@yorhel.nl> | 2011-01-01 17:03:23 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-01-01 17:03:23 +0100 |
commit | 674cab796b2607c1e4441d0005d96588cedbde29 (patch) | |
tree | a93fd1754ad0f9124e8eaa6905b81d561e0cf4d5 /lib/VNDB/Handler/VNBrowse.pm | |
parent | c488ba34c41d6311eb33d1c4ce48c8990bbec24e (diff) |
V|R Browse: Don't apply saved filters when an empty filter string is given
Diffstat (limited to 'lib/VNDB/Handler/VNBrowse.pm')
-rw-r--r-- | lib/VNDB/Handler/VNBrowse.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm index 8dba35aa..8a63b79b 100644 --- a/lib/VNDB/Handler/VNBrowse.pm +++ b/lib/VNDB/Handler/VNBrowse.pm @@ -21,10 +21,11 @@ sub list { { name => 'p', required => 0, default => 1, template => 'int' }, { name => 'q', required => 0, default => '' }, { name => 'sq', required => 0, default => '' }, - { name => 'fil',required => 0, default => $self->authPref('filter_vn') }, + { name => 'fil',required => 0, default => '' }, ); return 404 if $f->{_err}; $f->{q} ||= $f->{sq}; + $f->{fil} = $self->authPref('filter_vn') if !grep $_ eq 'fil', $self->reqParam(); my %compat = _fil_compat($self); return $self->resRedirect('/'.$1.$2.(!$3 ? '' : $1 eq 'd' ? '#'.$3 : '.'.$3), 'temp') |