diff options
author | hugo <hugo@localhost> | 2000-01-20 22:48:52 +0000 |
---|---|---|
committer | hugo <hugo@localhost> | 2000-01-20 22:48:52 +0000 |
commit | 33a90a2e56da5aabe7541f5a4994ae349b3ede49 (patch) | |
tree | 3c18d43ce60d39336737168292db25958983dcc7 /httpd/cgi-bin/LinkChecker.pl | |
parent | 6329ba458950f00c33ca6d5b71ad3d8c50338b29 (diff) | |
download | markup-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-x | httpd/cgi-bin/LinkChecker.pl | 8 |
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))) { |