From 51987b5711caf20b592fbd3cd297a2e065bd915b Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 24 Mar 2008 19:57:34 +0000 Subject: [PATCH] trimming null entries from end of results array git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9126 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 160b295866..a09cbe50cc 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -767,7 +767,7 @@ sub staged_search { last if $summary->{checked} < $PAGE_SIZE; } - my @results = @$all_results[$user_offset..($user_offset + $user_limit - 1)]; + my @results = grep {defined $_} @$all_results[$user_offset..($user_offset + $user_limit - 1)]; return { count => $est_hit_count, -- 2.11.0