]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
output key no longer required, silently defaults to most_doomed.
authorharrison%netscape.com <>
Tue, 27 Oct 1998 18:54:27 +0000 (18:54 +0000)
committerharrison%netscape.com <>
Tue, 27 Oct 1998 18:54:27 +0000 (18:54 +0000)
(people were linking into report.cgi without an output key
specified, this fix prevents perl from squealing.)

reports.cgi

index 1ac1883b37e9bce4b76eb92cb0995f1d42798d62..612a2576f8a88834913645f499f37d637d40d6e1 100755 (executable)
@@ -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
                }