trimming null entries from end of results array
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 Mar 2008 19:57:34 +0000 (19:57 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 Mar 2008 19:57:34 +0000 (19:57 +0000)
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

index 160b295..a09cbe5 100644 (file)
@@ -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,