From 1d2ec60fbd4325c002eeee4ab7f7aab046ac4bef Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 3 May 2009 17:02:22 +1200 Subject: [PATCH] Bug 2944 fix courtesy of Amr Denni Signed-off-by: Galen Charlton --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index eab50b7d2d..f96149f10c 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. -- 2.39.5