More work on SimpleSearch
authorChris Nighswonger <cnighswonger@foundations.edu>
Tue, 15 Apr 2008 09:24:31 +0000 (05:24 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 17 Apr 2008 10:52:43 +0000 (05:52 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Search.pm

index 2c572b7..9e49334 100644 (file)
@@ -229,6 +229,7 @@ sub SimpleSearch {
         my @results;
         my @tmpresults;
         my @zconns;
+        my $total_hits;
         return ( "No query entered", undef, undef ) unless $query;
 
         # Initialize & Search Zebra
@@ -260,7 +261,6 @@ sub SimpleSearch {
                 return ( $error, undef, undef );
             }
         }
-        my $total_hits;
         while ( ( my $i = ZOOM::event( \@zconns ) ) != 0 ) {
             my $event = $zconns[ $i - 1 ]->last_event();
             if ( $event == ZOOM::Event::ZEND ) {