]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Bugs.pm
me.archived should be an AND not an OR
[debbugs.git] / Debbugs / Bugs.pm
index 1ace4b186b83f05b25c9c4a036d81bf62609f570..6e579818288262e63445fce3c057e2a84facf49a 100644 (file)
@@ -506,7 +506,7 @@ sub get_bugs_by_db{
      # handle it, so bail out here
      for my $maint (make_list(exists $param{maint}?$param{maint}:[])) {
          if (defined $maint and $maint eq '') {
-              die "Can't handle empty maint (unmaintained packages) in get_bugs_by_idx";
+              die "Can't handle empty maint (unmaintained packages) in get_bugs_by_db";
          }
      }
 
@@ -582,7 +582,7 @@ sub get_bugs_by_db{
      }
      # handle archive
      if (defined $param{archive} and $param{archive} ne 'both') {
-         $rs = $rs->search('me.archived' => $param{archive})
+         $rs = $rs->search(['me.archived' => $param{archive}]);
      }
      return $rs->get_column('id')->all();
 }