--- Webpacus/lib/Webpacus/Model/WebPAC.pm 2005/11/23 21:52:25 117 +++ Webpacus/lib/Webpacus/Model/WebPAC.pm 2005/11/23 21:52:35 119 @@ -98,11 +98,11 @@ } sub search { - my ( $self, $query, $template, @add_attr ) = @_; + my ( $self, $query, $template, $add_attr ) = @_; my $log = $self->{log}; - $log->debug("search model query: '$query', add_attr: '" . join("','", @add_attr) . "'"); + $log->debug("search model query: '$query', add_attr: '" . join("','", @{$add_attr}) . "'"); my $template_filename = $template || $self->{template}; @@ -110,7 +110,7 @@ phrase => $query, get_attr => [ '@uri' ], max => 100, - add_attr => @add_attr, + add_attr => $add_attr, ); $log->debug("loading " . ($#results + 1) . " results");