summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Staff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-21 10:07:12 +0100
committerYorhel <git@yorhel.nl>2021-01-21 10:10:23 +0100
commitebb48fad0da450d0c07c9dc9d171eb612fa56486 (patch)
tree5af199b36752f5b604ed591dab3ae43e023627e4 /lib/VNWeb/Staff
parentb7191ab5eb79a9683cafc154dd1dd0492ae6c153 (diff)
AdvSearch: Stop logging filter compatibility conversion errors
I think I've seen all the possible errors by now, what remains are invalid/corrupted filter strings that aren't very interesting to handle.
Diffstat (limited to 'lib/VNWeb/Staff')
-rw-r--r--lib/VNWeb/Staff/List.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VNWeb/Staff/List.pm b/lib/VNWeb/Staff/List.pm
index 967591d7..cf773131 100644
--- a/lib/VNWeb/Staff/List.pm
+++ b/lib/VNWeb/Staff/List.pm
@@ -46,11 +46,7 @@ TUWF::get qr{/s(?:/(?<char>all|[a-z0]))?}, sub {
$f = filter_staff_adv $f;
tuwf->compile({ advsearch => 's' })->validate(@$f > 1 ? $f : undef)->data;
};
- if(!$q) {
- warn "Filter compatibility conversion failed\n$@";
- } else {
- return tuwf->resRedirect(tuwf->reqPath().'?'.query_encode(%$opt, fil => undef, f => $q), 'temp');
- }
+ return tuwf->resRedirect(tuwf->reqPath().'?'.query_encode(%$opt, fil => undef, f => $q), 'temp') if $q;
}
$opt->{f} = advsearch_default 's' if !$opt->{f}{query} && !defined tuwf->reqGet('f');