From: harrison%netscape.com <> Date: Tue, 27 Oct 1998 18:54:27 +0000 (+0000) Subject: output key no longer required, silently defaults to most_doomed. X-Git-Tag: bugzilla-2.2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26a9b7cb423cd27b6909e3acde6cc1ab320cdfdf;p=thirdparty%2Fbugzilla.git 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.) --- diff --git a/reports.cgi b/reports.cgi index 1ac1883b37..612a2576f8 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 }