summaryrefslogtreecommitdiffstats
path: root/httpd/cgi-bin/LinkChecker.pl
diff options
context:
space:
mode:
authorhugo <hugo@localhost>2000-01-20 22:48:52 +0000
committerhugo <hugo@localhost>2000-01-20 22:48:52 +0000
commit33a90a2e56da5aabe7541f5a4994ae349b3ede49 (patch)
tree3c18d43ce60d39336737168292db25958983dcc7 /httpd/cgi-bin/LinkChecker.pl
parent6329ba458950f00c33ca6d5b71ad3d8c50338b29 (diff)
downloadmarkup-validator-33a90a2e56da5aabe7541f5a4994ae349b3ede49.zip
markup-validator-33a90a2e56da5aabe7541f5a4994ae349b3ede49.tar.gz
markup-validator-33a90a2e56da5aabe7541f5a4994ae349b3ede49.tar.bz2
Fixed problem in the summary table
Diffstat (limited to 'httpd/cgi-bin/LinkChecker.pl')
-rwxr-xr-xhttpd/cgi-bin/LinkChecker.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/httpd/cgi-bin/LinkChecker.pl b/httpd/cgi-bin/LinkChecker.pl
index 5ade2e2..e9e3fe9 100755
--- a/httpd/cgi-bin/LinkChecker.pl
+++ b/httpd/cgi-bin/LinkChecker.pl
@@ -5,7 +5,7 @@
# (c) 1999-2000 World Wide Web Consortium
# based on Renaud Bruyeron's checklink.pl
#
-# $Id: LinkChecker.pl,v 1.18 2000-01-20 22:01:03 hugo Exp $
+# $Id: LinkChecker.pl,v 1.19 2000-01-20 22:48:52 hugo Exp $
#
# This program is licensed under the W3C License.
@@ -21,7 +21,7 @@ $| = 1;
# Version info
my $PROGRAM = 'W3C LinkChecker';
-my $VERSION = q$Revision: 1.18 $ . '(c) 1999-2000 W3C';
+my $VERSION = q$Revision: 1.19 $ . '(c) 1999-2000 W3C';
my $REVISION; ($REVISION = $VERSION) =~ s/Revision: (\d+\.\d+) .*/$1/;
# State of the program
@@ -858,7 +858,9 @@ sub links_summary(\%,\%,\%) {
# Print a summary
my %code_summary;
foreach $u (keys %$links) {
- $code_summary{$results->{$u}{$u}{orig}}++;
+ if (defined($results->{$u}{$u}{orig})) {
+ $code_summary{$results->{$u}{$u}{orig}}++;
+ }
}
print "<table border=\"1\">\n<tr><td><b>Code</b></td><td><b>Occurences</b></td><td><b>What to do</b></td></tr>\n";
foreach $code (sort(keys(%code_summary))) {