[Koha-patches] [PATCH] Bug 2944 fix courtesy of Amr Denni
Chris Cormack
chris at bigballofwax.co.nz
Sun May 3 07:02:22 CEST 2009
---
C4/Search.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index eab50b7..f96149f 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -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.
--
1.5.6.3
More information about the Koha-patches
mailing list