summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"];
}