From: Don Armstrong Date: Tue, 4 Dec 2012 00:50:18 +0000 (-0800) Subject: handle the maintainer being undef properly X-Git-Tag: release/2.6.0~321 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=3fb4dc19b2f53742d488a76def679bf482e185fd handle the maintainer being undef properly --- diff --git a/cgi/pkgindex.cgi b/cgi/pkgindex.cgi index 06154d5..21acad5 100755 --- a/cgi/pkgindex.cgi +++ b/cgi/pkgindex.cgi @@ -87,7 +87,7 @@ if ($indexon eq "pkg") { $htmldescrip{$pkg} = sprintf('%s (%s)', package_links(package => $pkg, links_only=>1), html_escape($pkg), - package_links(maint=>$maintainers{$pkg})); + package_links(maint=>$maintainers{$pkg}//[])); } } elsif ($indexon eq "src") { $tag = "source package"; @@ -115,7 +115,7 @@ if ($indexon eq "pkg") { $htmldescrip{$src} = sprintf('%s (%s)', package_links(src => $src, links_only=>1), html_escape($src), - package_links(maint => $maintainers{$src})); + package_links(maint => $maintainers{$src}//[])); } } elsif ($indexon eq "maint") { $tag = "maintainer";