]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Plack/App/Gruntmaster/HTML.pm
Remove trailing & from prev/next page links in log
[plack-app-gruntmaster.git] / lib / Plack / App / Gruntmaster / HTML.pm
index bdd20c2d183439a6ef7635abc3bf38b075282e82..cd65088a44a40c83fb7e7b21ac3d833897f2788e 100644 (file)
@@ -249,7 +249,7 @@ sub process_log {
                next unless $elem;
                delete $args{args}{page};
                my $str = join '&', map { $_ . '=' . $args{args}{$_} } keys %{$args{args}};
-               $elem->find('a')->edit_href(sub{s/$/&$str/});
+               $elem->find('a')->edit_href(sub{s/$/&$str/}) if $str;
        }
        $tree->fclass('current')->replace_content("Page $args{current_page} of $args{last_page}");
 }
This page took 0.022435 seconds and 4 git commands to generate.