Porting SimpleSearch return changes to all code calling it.
[koha.git] / C4 / Matcher.pm
index 210c8fa..a0f1a98 100644 (file)
@@ -661,7 +661,7 @@ sub get_matches {
         # build query
         my $query = join(" or ", map { "$matchpoint->{'index'}=$_" } @source_keys);
         # FIXME only searching biblio index at the moment
-        my ($error, $searchresults) = SimpleSearch($query);
+        my ($error, $searchresults, $total_hits) = SimpleSearch($query);
 
         warn "search failed ($query) $error" if $error;
         foreach my $matched (@$searchresults) {