summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorharrison%netscape.com <>1998-10-27 19:54:27 +0100
committerharrison%netscape.com <>1998-10-27 19:54:27 +0100
commit26a9b7cb423cd27b6909e3acde6cc1ab320cdfdf (patch)
tree651a78831b1b8b3673a89180be550cd8f0cd6f4f /reports.cgi
parent8995fafb5fa7701a332c3f3864ee4f028711efc0 (diff)
downloadbugzilla-26a9b7cb423cd27b6909e3acde6cc1ab320cdfdf.tar.gz
bugzilla-26a9b7cb423cd27b6909e3acde6cc1ab320cdfdf.tar.xz
output key no longer required, silently defaults to most_doomed.
(people were linking into report.cgi without an output key specified, this fix prevents perl from squealing.)
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi
index 1ac1883b3..612a2576f 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -66,6 +66,8 @@ else
ConnectToDatabase();
GetVersionTable();
+$::FORM{'output'} = $::FORM{'output'} || "most_doomed"; # a reasonable default
+
if (! defined $::FORM{'product'})
{
&choose_product;
@@ -76,7 +78,7 @@ else
# can be called from outside. modify %reports
# accordingly when a new report type is added
- if (! defined $reports{$::FORM{'output'}})
+ if (! exists $reports{$::FORM{'output'}})
{
$::FORM{'output'} = "most_doomed"; # a reasonable default
}