X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=lib%2FPackages%2FDoSearchContents.pm;h=1a51ba3d445eb28c2f697ce5dd80a46e06e61d83;hb=ef8e397d245af81f3224c9cc60c89764601fcf17;hp=b8698cc3b592830a0add06d4e3284ba5ba4c67a2;hpb=3f085acbf01251255c4f6e4786b0439ff424d979;p=deb%2Fpackages.git diff --git a/lib/Packages/DoSearchContents.pm b/lib/Packages/DoSearchContents.pm index b8698cc..1a51ba3 100644 --- a/lib/Packages/DoSearchContents.pm +++ b/lib/Packages/DoSearchContents.pm @@ -24,6 +24,7 @@ sub do_search_contents { if ($params->{errors}{keywords}) { fatal_error( _g( "keyword not valid or missing" ) ); + $opts->{keywords} = []; } elsif (grep { length($_) < 2 } @{$opts->{keywords}}) { fatal_error( _g( "keyword too short (keywords need to have at least two characters)" ) ); }