Author: dom Date: 2007-06-16 15:20:24 +0100 (Sat, 16 Jun 2007) New Revision: 1078
Modified: trunk/lib/OpenGuides/Test.pm Log: make_cgi_object: "0" is a valid value; don't lose this
Modified: trunk/lib/OpenGuides/Test.pm =================================================================== --- trunk/lib/OpenGuides/Test.pm 2007-06-16 13:55:52 UTC (rev 1077) +++ trunk/lib/OpenGuides/Test.pm 2007-06-16 14:20:24 UTC (rev 1078) @@ -190,7 +190,11 @@ latitude longitude summary username comment edit_type ) ) { - $q->param( -name => $param, -value => $args{$param} || "" ); + if (defined $args{$param}) { + $q->param( -name => $param, -value => $args{$param} ); + } else { + $q->param( -name => $param, -value => '' ); + } } $ENV{REMOTE_ADDR} = "127.0.0.1";
openguides-commits@lists.openguides.org