From 44eea3643e4929b1acb010dec55bf58f983ea68b Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 9 Sep 2010 20:00:10 +0200 Subject: [PATCH] Bug 4803 : some result pages could be broken --- C4/Search.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 675ac05ff5..727650f00a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -2335,8 +2335,10 @@ sub NZorder { $counter++ ) { - $result_hash->{'RECORDS'}[$counter] = - GetMarcBiblio( $result_hash->{'RECORDS'}[$counter] )->as_usmarc; + $result_hash->{'RECORDS'}[$counter] = + GetMarcBiblio( $result_hash->{'RECORDS'}[$counter] )->as_usmarc + if $result_hash->{'RECORDS'}[$counter]; + } my $finalresult = (); $result_hash->{'hits'} = $numbers; -- 2.39.5