diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index 0e71bacf3..9b93d5536 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -93,7 +93,7 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS resnav += ("\">\"arrowleft\" "); } - numberofpages = Math.min(10, 1 + ((totalcount - 1) / itemsperpage)); + numberofpages = Math.min(10, 1 + ((itemscount - 1) / itemsperpage)); if (!numberofpages) numberofpages = 10; for (i = 0; i < numberofpages; i++) { if (i == thispage) {