aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-30 07:41:34 +0000
committerlpsolit%gmail.com <>2006-12-30 07:41:34 +0000
commitca6e0483ffbeb08576e62c8e890e1d80cbb804d3 (patch)
treee4b41084db5f1399207c324b453c14653add346c /query.cgi
parentBug 365374: The newchangedmail template calls field-descs when it only needs ... (diff)
downloadbugzilla-ca6e0483ffbeb08576e62c8e890e1d80cbb804d3.tar.gz
bugzilla-ca6e0483ffbeb08576e62c8e890e1d80cbb804d3.tar.bz2
bugzilla-ca6e0483ffbeb08576e62c8e890e1d80cbb804d3.zip
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"];
}