]> git.deb.at Git - deb/packages.git/blobdiff - cgi-bin/dispatcher.pl
Add forgotten DEBUG
[deb/packages.git] / cgi-bin / dispatcher.pl
index 99c547998e54ac98405383c8ec4190e62665fd63..254f0b6da3bdf116931f55dd2e3f5f12b1e4ccd2 100755 (executable)
@@ -67,7 +67,7 @@ my $http_lang = $acc->accepts( $input->http("Accept-Language"),
                               \@LANGUAGES );
 debug( "LANGUAGES=@LANGUAGES header=".
        $input->http("Accept-Language").
-       " http_lang=$http_lang", 2 );
+       " http_lang=$http_lang", 2 ) if DEBUG;
 bindtextdomain ( 'pdo', $LOCALES );
 textdomain( 'pdo' );
 
@@ -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