summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
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
}