]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2005-10-19 03:26:40 by don]
authordon <>
Wed, 19 Oct 2005 10:26:40 +0000 (02:26 -0800)
committerdon <>
Wed, 19 Oct 2005 10:26:40 +0000 (02:26 -0800)
* Fix attempt to use an undefined value as an array reference on line 1095, closes 334448.

cgi/pkgreport.cgi

index 9387f597b15f195158230e729c3efa1962769505..38a2e581247b06bcae73f41cc1eb70ebe00a866d 100755 (executable)
@@ -1078,7 +1078,7 @@ sub determine_ordering {
         } else {
             push @order, [ 0..$#{$prior[-1]} ];
         }
-        my @t = @{ $c->{"ttl"} };
+        my @t = @{ $c->{"ttl"} } if defined $c->{ttl};
         push @t, map { toenglish($prior[-1]->[$_]) } ($#t+1)..($#{$prior[-1]});
        push @t, $c->{"def"} || "";
         push @title, [@t];