From 45e21f785a2874b6b2d478118e67e1904b1b5464 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 Signed-off-by: Henri-Damien LAURENT --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 988a7a2751..6edf8ddd3e 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -223,7 +223,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