svn commit: r50931 - head/en_US.ISO8859-1/htdocs/ports

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: wosch
Date: Tue Sep 26 10:54:16 2017
New Revision: 50931
URL: https://svnweb.freebsd.org/changeset/doc/50931

Log:
  check for undefined input from ports database
  
  PR: 222615

Modified:
  head/en_US.ISO8859-1/htdocs/ports/portindex

Modified: head/en_US.ISO8859-1/htdocs/ports/portindex
==============================================================================
--- head/en_US.ISO8859-1/htdocs/ports/portindex	Tue Sep 26 10:35:41 2017	(r50930)
+++ head/en_US.ISO8859-1/htdocs/ports/portindex	Tue Sep 26 10:54:16 2017	(r50931)
@@ -285,7 +285,13 @@ EOF
 	print $moutf "<h3>",$category_groups{$cg},"</h3>\n";
 	print $moutf "<ul>\n";
 	foreach my $key (sort(keys(%stats))) {
+	    if (!defined $category_description{$key}{group}) {
+		warn "Warning: no category_description/group for $key, ignore\n";
+		next;
+	    }
+
 	    next if ($category_description{$key}{group} ne $cg);
+
 	    # For the master file...
 	    print $moutf 
 		"<li><a href=\"$key.html\">\u$key</a> <em>($stats{$key})</em>";
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.