followup : auto_truncation 3287252c0
[koha.git] / C4 / Heading.pm
index 94592e6..3f0302d 100644 (file)
@@ -117,9 +117,9 @@ heading.
 
 sub authorities {
     my $self = shift;
-    my $query = "Match-heading,ext='$self->{'search_form'}'";
+    my $query = qq(Match-heading,ext="$self->{'search_form'}");
     $query .= $self->_query_limiters();
-    my $results = SimpleSearch($query, "authorityserver");
+    my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
     return $results;
 }
 
@@ -140,7 +140,7 @@ sub preferred_authorities {
     my $self = shift;
     my $query = "Match-heading-see-from,ext='$self->{'search_form'}'";
     $query .= $self->_query_limiters();
-    my $results = SimpleSearch($query, "authorityserver");
+    my ($error, $results, $total_hits) = SimpleSearch( $query, undef, undef, [ "authorityserver" ] );
     return $results;
 }