diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl index 3da74f56ba..4bd4a5a5dd 100755 --- a/labels/label-item-search.pl +++ b/labels/label-item-search.pl @@ -182,7 +182,7 @@ if ( $show_results ) { startfromnext => $startfrom + min( $resultsperpage, scalar @results ), startfromprev => max( $startfrom - $resultsperpage, 0 ), searchdata => \@field_data, - total => $total, + total => (scalar @results), from => $startfrom + 1, to => $startfrom + min( $resultsperpage, scalar @results ), numbers => \@numbers,