summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-24 08:21:54 +0100
committerYorhel <git@yorhel.nl>2021-01-24 08:22:06 +0100
commit4feb812f8efb8632ed0e62646ec7927433da425e (patch)
tree7b27ee60a299f1fc86e8127d7e0eabf455596e32
parente0ad8c68e06fb256f6c201fb73579e492493bb39 (diff)
AdvSearch: Fix "1 results" display
https://vndb.org/t950.878
-rw-r--r--lib/VNWeb/HTML.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm
index dee2b734..8d9c21eb 100644
--- a/lib/VNWeb/HTML.pm
+++ b/lib/VNWeb/HTML.pm
@@ -897,7 +897,7 @@ sub editmsg_ {
# Display the number of results and time it took. If the query timed out ($count is undef), an error message is displayed instead.
sub advsearch_msg_ {
my($count, $time) = @_;
- p_ class => 'center', sprintf '%d results in %.3fs', $count, $time if defined $count;
+ p_ class => 'center', sprintf '%d result%s in %.3fs', $count, $count == 1 ? '' : 's', $time if defined $count;
div_ class => 'warning', sub {
h2_ 'ERROR: Query timed out.';
p_ q{