Whoops extra } crept in when fixing a merge conflict, removing it
authorChris Cormack <chris@bigballofwax.co.nz>
Tue, 12 May 2009 10:13:10 +0000 (22:13 +1200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:34 +0000 (23:19 +0200)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/opac-search.pl

index cac50e7..7f7734b 100755 (executable)
@@ -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};