]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Handle arrayref empty maintainer
authorDon Armstrong <don@donarmstrong.com>
Thu, 5 Jul 2007 18:04:05 +0000 (11:04 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 5 Jul 2007 18:04:05 +0000 (11:04 -0700)
cgi/pkgreport.cgi

index 77817b43acd08e5621b81f69fba64cbf1e7ed7ec..062aef8113577a6aee988317763cb4a6aeb42dd4 100755 (executable)
@@ -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=@_;