diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-09-25 14:50:18 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-09-25 14:50:18 -0700 |
commit | 8ab9d14a304aacdefd98e80c143132b10194d8c8 (patch) | |
tree | 05b2979c4d30310f20c1fd416327cb69524097de /httemplate/graph | |
parent | 809b7b5c08393a3cba0f7d8682eff3d72e4f4e32 (diff) |
scalar cgi param
Diffstat (limited to 'httemplate/graph')
-rw-r--r-- | httemplate/graph/signupdate.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
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 '); |