From: Don Armstrong Date: Thu, 5 Jul 2007 18:04:05 +0000 (-0700) Subject: * Handle arrayref empty maintainer X-Git-Tag: release/2.6.0~527^2~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4df037ee08661c9b102751e2c5580eb2184256a1;p=debbugs.git * Handle arrayref empty maintainer --- diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 77817b4..062aef8 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -320,7 +320,7 @@ my $title = $gBugs.' '.join(' and ', map {/ or /?"($_)":$_} @title); @title = (); # we have to special case the maint="" search, unfortunatly. -if (defined $param{maint} and $param{maint} eq "") { +if (defined $param{maint} and $param{maint} eq "" or ref($param{maint}) and not @{$param{maint}}) { my %maintainers = %{getmaintainers()}; @bugs = get_bugs(function => sub {my %d=@_;