[open-ils-commits] r9424 - branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 22 11:14:57 EDT 2008


Author: erickson
Date: 2008-04-22 10:35:50 -0400 (Tue, 22 Apr 2008)
New Revision: 9424

Modified:
   branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
default estimated hit count to 0 to protect against null counts in the case of a search timeout/failure

Modified: branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-04-22 01:58:42 UTC (rev 9423)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-04-22 14:35:50 UTC (rev 9424)
@@ -708,7 +708,7 @@
     # fulfill the user-specified limit and offset
     my $all_results = [];
     my $page; # current superpage
-    my $est_hit_count;
+    my $est_hit_count = 0;
 
     for($page = 0; $page < $SEARCH_PAGES; $page++) {
 



More information about the open-ils-commits mailing list