From a6a4b17cbf6359fecde5135727a59b1f7b54cd9f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 25 Sep 2016 14:49:44 -0700 Subject: scalar cgi param --- httemplate/graph/signupdate.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'httemplate/graph') diff --git a/httemplate/graph/signupdate.cgi b/httemplate/graph/signupdate.cgi index 8261257f3..823ddb89f 100644 --- a/httemplate/graph/signupdate.cgi +++ b/httemplate/graph/signupdate.cgi @@ -34,13 +34,13 @@ $where{'agentnum'} = $agentnum if $agentnum; $where{'usernum'} = $usernum if $usernum; my $sdate = DateTime->new( - year => $cgi->param('start_year'), - month => $cgi->param('start_month'), + year => scalar($cgi->param('start_year')), + month => scalar($cgi->param('start_month')), )->epoch(); my $edate = DateTime->new( - year => $cgi->param('end_year'), - month => $cgi->param('end_month') + year => scalar($cgi->param('end_year')), + month => scalar($cgi->param('end_month')), )->add( months => 1 )->epoch(); my $where = (%where ? ' AND ' : ' WHERE '); -- cgit v1.2.1