From 17e6dc4b2d00fe1868b5808f339a4ba663272184 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 12 May 2009 22:13:10 +1200 Subject: [PATCH] Whoops extra } crept in when fixing a merge conflict, removing it Signed-off-by: Galen Charlton --- opac/opac-search.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index cac50e7740..7f7734bfc5 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -455,7 +455,10 @@ for (my $i=0;$i<=@servers;$i++) { } $_ ->{'clean_isbn'} = $1; } - $total = $total + $results_hashref->{$server}->{"hits"}; + + if ($results_hashref->{$server}->{"hits"}){ + $total = $total + $results_hashref->{$server}->{"hits"}; + } ## If there's just one result, redirect to the detail page if ($total == 1) { my $biblionumber=$newresults[0]->{biblionumber}; -- 2.39.5