]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Bugs.pm
properly use array ref
[debbugs.git] / Debbugs / Bugs.pm
index 1ace4b186b83f05b25c9c4a036d81bf62609f570..8162bd301b846d9f7cc5eb2ae7f26307bfecc7e7 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();
 }