summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-30 08:41:34 +0100
committerlpsolit%gmail.com <>2006-12-30 08:41:34 +0100
commitca6e0483ffbeb08576e62c8e890e1d80cbb804d3 (patch)
treee4b41084db5f1399207c324b453c14653add346c /query.cgi
parentca2a1d486ebcddd2307ee2c2a9a97295e093eed3 (diff)
downloadbugzilla-ca6e0483ffbeb08576e62c8e890e1d80cbb804d3.tar.gz
bugzilla-ca6e0483ffbeb08576e62c8e890e1d80cbb804d3.tar.xz
Bug 365376: query.cgi: Use of uninitialized value at line 178 - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index 656fb1f65..ce6aefc61 100755
--- a/query.cgi
+++ b/query.cgi
@@ -174,7 +174,7 @@ if (!PrefillForm($buffer)) {
}
}
-if ($default{'chfieldto'}->[0] eq "") {
+if (!scalar(@{$default{'chfieldto'}}) || $default{'chfieldto'}->[0] eq "") {
$default{'chfieldto'} = ["Now"];
}