]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365376: query.cgi: Use of uninitialized value at line 178 - Patch by Frédéric...
authorlpsolit%gmail.com <>
Sat, 30 Dec 2006 07:41:34 +0000 (07:41 +0000)
committerlpsolit%gmail.com <>
Sat, 30 Dec 2006 07:41:34 +0000 (07:41 +0000)
query.cgi

index 656fb1f657c11e7bcf4b1116ad9f809e619478b0..ce6aefc617b2412cd5e4a33397e38431902e1524 100755 (executable)
--- 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"];
 }