From 3fb4dc19b2f53742d488a76def679bf482e185fd Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 3 Dec 2012 16:50:18 -0800 Subject: [PATCH] handle the maintainer being undef properly --- cgi/pkgindex.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.39.5