From a248160a4755779f055c57122fe64804098dfc2c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 22 Aug 2005 03:43:36 +0000 Subject: Bug 302202: "Odd number of elements in anonymous hash" error when loading query.cgi - Patch by Rob Siklos r=wicked a=justdave --- query.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index a25f8535d..51f9832f3 100755 --- a/query.cgi +++ b/query.cgi @@ -384,8 +384,8 @@ for (my $chart = 0; $cgi->param("field$chart-0-0"); $chart++) { my @cols; for (my $col = 0; $cgi->param("field$chart-$row-$col"); $col++) { push(@cols, { field => $cgi->param("field$chart-$row-$col"), - type => $cgi->param("type$chart-$row-$col"), - value => $cgi->param("value$chart-$row-$col") }); + type => $cgi->param("type$chart-$row-$col") || 'noop', + value => $cgi->param("value$chart-$row-$col") || '' }); } push(@rows, \@cols); } -- cgit v1.2.3-24-g4f1b