distroquery: print "results show" not "results found" when showing pages > 1

This commit is contained in:
Silvan Calarco 2013-10-16 13:42:24 +02:00
parent 0566f3557c
commit 9ca0fcb65a

View File

@ -525,11 +525,11 @@ void printQueryData() {
printf("<hr>");
printf("]]></queryreply>");
if (otherresults)
k = query_offset / query_limit + 1; /* k = current shown page */
if (otherresults || k > 1)
printf("<querystatus><![CDATA[%d %s.", numresults, _("result(s) shown"));
else
printf("<querystatus><![CDATA[%d %s.", numresults, _("result(s) found"));
k = query_offset / query_limit + 1; /* k = current shown page */
if (k < 7) j=1; else j=k-5; /* j = start pages list from */
if (!otherresults) {
/* current page is last available */