summaryrefslogtreecommitdiffstats
path: root/search/js/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'search/js/search.js')
-rw-r--r--search/js/search.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/search/js/search.js b/search/js/search.js
index b19a420cee8..b090a4ec4a8 100644
--- a/search/js/search.js
+++ b/search/js/search.js
@@ -234,6 +234,9 @@
} else {
// not showing result, decrease counter
var count = $status.data('count') - 1;
+ if (count < 0) {
+ count = 0;
+ }
$status.data('count', count)
.text(t('search', '{count} search results in other places', {count:count}, count));
}