From: Frank Lichtenheld Date: Thu, 23 Feb 2006 00:48:11 +0000 (+0000) Subject: Fix an error I introduced in an earlier commit X-Git-Tag: switch-to-templates~65 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=c7716641c96083a5c6b339710e80d01f56002f01;p=deb%2Fpackages.git Fix an error I introduced in an earlier commit --- diff --git a/cgi-bin/dispatcher.pl b/cgi-bin/dispatcher.pl index 99c5479..e776a83 100755 --- a/cgi-bin/dispatcher.pl +++ b/cgi-bin/dispatcher.pl @@ -83,7 +83,7 @@ if (my $path = $input->path_info() || $input->param('PATH_INFO')) { shift @components; $input->param( 'source', 1 ); } - if (@components > 1 and $components[0] eq 'search') { + if (@components > 0 and $components[0] eq 'search') { shift @components; $what_to_do = 'search'; # Done