From d020b3b52ca2d66b6492b7d88b70c4ef77a3f9a0 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 3 May 2010 19:29:31 -0700 Subject: [PATCH] fix undefined pending/done issues in Pkgreport.pm --- Debbugs/CGI/Pkgreport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Debbugs/CGI/Pkgreport.pm b/Debbugs/CGI/Pkgreport.pm index e87125c..8c217d7 100644 --- a/Debbugs/CGI/Pkgreport.pm +++ b/Debbugs/CGI/Pkgreport.pm @@ -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}; } } -- 2.39.2