summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-13 02:18:10 +0200
committerterry%mozilla.org <>1999-05-13 02:18:10 +0200
commit47e7a341fd69d3d26d48d4e33d09c6e8ecbbc6c2 (patch)
tree0ffce92944aea0ac141e7fcdf2f902c238223b06
parentf9e320695616f29fb1f11b7a5f3f9cee2040d7ee (diff)
downloadbugzilla-47e7a341fd69d3d26d48d4e33d09c6e8ecbbc6c2.tar.gz
bugzilla-47e7a341fd69d3d26d48d4e33d09c6e8ecbbc6c2.tar.xz
navigation_header() should work even if $::FORM{'id'} isn't defined.
-rw-r--r--CGI.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/CGI.pl b/CGI.pl
index ce58c54d1..595c8ab32 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -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";