From ca6e0483ffbeb08576e62c8e890e1d80cbb804d3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 30 Dec 2006 07:41:34 +0000 Subject: Bug 365376: query.cgi: Use of uninitialized value at line 178 - Patch by Frédéric Buclin r/a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- query.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'query.cgi') 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"]; } -- cgit v1.2.3-24-g4f1b