From 743fbda69d0075d248f9e316a2e29d3970a837f5 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Tue, 15 Apr 2008 05:24:31 -0400 Subject: [PATCH] More work on SimpleSearch Signed-off-by: Joshua Ferraro --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 2c572b7b7f..9e4933428a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -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 ) { -- 2.39.5