]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix undefined pending/done issues in Pkgreport.pm
authorDon Armstrong <don@donarmstrong.com>
Tue, 4 May 2010 02:29:31 +0000 (19:29 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 4 May 2010 02:29:31 +0000 (19:29 -0700)
Debbugs/CGI/Pkgreport.pm

index e87125c0ca4b247f5c37a73de2cea0df722cc53f..8c217d7e1271c367b6e171d9776470b6540a8a2a 100644 (file)
@@ -224,7 +224,7 @@ sub short_bug_status_html {
      if (@blockedby && $status{"pending"} ne 'fixed' && ! length($status{done})) {
          for my $b (@blockedby) {
               my %s = %{get_bug_status($b)};
-              next if $s{"pending"} eq 'fixed' || length $s{done};
+              next if (defined $s{pending} and $s{pending} eq 'fixed') or (defined $s{done} and length $s{done});
               push @{$status{blockedby_array}},{bug_num => $b, subject => $s{subject}, status => \%s};
          }
      }