diff options
author | terry%mozilla.org <> | 1999-05-11 07:08:58 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-11 07:08:58 +0200 |
commit | 2adbacb8d2604dc7888216537c248b30cde1128e (patch) | |
tree | e95cc07bb2c96b059def284267f12a372b9c91e1 /show_bug.cgi | |
parent | fc6da409f24abe6818ddeaaa75e949da369885f1 (diff) | |
download | bugzilla-2adbacb8d2604dc7888216537c248b30cde1128e.tar.gz bugzilla-2adbacb8d2604dc7888216537c248b30cde1128e.tar.xz |
Give better error messages when we can't display a bug.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 75a3bb8e3..803e1a07e 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -22,11 +22,17 @@ use diagnostics; use strict; +require "CGI.pl"; + +ConnectToDatabase(); + +if ($::FORM{'GoAheadAndLogIn'}) { + confirm_login(); +} + print "Content-type: text/html\n"; print "\n"; -require "CGI.pl"; - if (!defined $::FORM{'id'}) { print "<H2>Search By Bug Number</H2>\n"; print "<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n"; @@ -37,8 +43,6 @@ if (!defined $::FORM{'id'}) { exit; } -ConnectToDatabase(); - GetVersionTable(); PutHeader("Bugzilla bug $::FORM{'id'}", "Bugzilla Bug", $::FORM{'id'}); |