diff options
author | terry%mozilla.org <> | 1999-05-13 02:18:10 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-13 02:18:10 +0200 |
commit | 47e7a341fd69d3d26d48d4e33d09c6e8ecbbc6c2 (patch) | |
tree | 0ffce92944aea0ac141e7fcdf2f902c238223b06 | |
parent | f9e320695616f29fb1f11b7a5f3f9cee2040d7ee (diff) | |
download | bugzilla-47e7a341fd69d3d26d48d4e33d09c6e8ecbbc6c2.tar.gz bugzilla-47e7a341fd69d3d26d48d4e33d09c6e8ecbbc6c2.tar.xz |
navigation_header() should work even if $::FORM{'id'} isn't defined.
-rw-r--r-- | CGI.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -192,7 +192,8 @@ sub value_quote { } sub navigation_header { - if (defined $::COOKIE{"BUGLIST"} && $::COOKIE{"BUGLIST"} ne "") { + if (defined $::COOKIE{"BUGLIST"} && $::COOKIE{"BUGLIST"} ne "" && + defined $::FORM{'id'}) { my @bugs = split(/:/, $::COOKIE{"BUGLIST"}); my $cur = lsearch(\@bugs, $::FORM{"id"}); print "<B>Bug List:</B> (@{[$cur + 1]} of @{[$#bugs + 1]})\n"; |