Bug 2944 fix courtesy of Amr Denni

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Chris Cormack 2009-05-03 17:02:22 +12:00 committed by Galen Charlton
parent e60fbf4c30
commit 1d2ec60fbd
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ sub SimpleSearch {
my $search_result =
( $result->{hits}
&& $result->{hits} > 0 ? $result->{'RECORDS'} : [] );
return ( undef, $search_result, scalar($search_result) );
return ( undef, $search_result, scalar($result->{hits}) );
}
else {
# FIXME hardcoded value. See catalog/search.pl & opac-search.pl too.