]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2004-04-19 10:30:42 by cjwatson]
authorcjwatson <>
Mon, 19 Apr 2004 17:30:42 +0000 (09:30 -0800)
committercjwatson <>
Mon, 19 Apr 2004 17:30:42 +0000 (09:30 -0800)
Only link to $gPackagePages if it's defined.

cgi/pkgreport.cgi

index 6eaa700498124fecf584f1cfb29fbbada03b8dfc..0b98106853cfe34ed20dee70468ce02c647444ff 100755 (executable)
@@ -285,7 +285,7 @@ if (defined $pkg || defined $src) {
        if ($pkg and defined($pseudodesc) and exists($pseudodesc->{$pkg})) {
            push @references, "to the <a href=\"http://${debbugs::gWebDomain}/pseudo-packages${debbugs::gHTMLSuffix}\">list of other pseudo-packages</a>";
        } else {
-           if ($pkg) {
+           if ($pkg and defined $debbugs::gPackagePages) {
                push @references, sprintf "to the <a href=\"%s\">%s package page</a>", urlsanit("http://${debbugs::gPackagePages}/$pkg"), htmlsanit("$pkg");
            }
            if (defined $debbugs::gSubscriptionDomain) {