summaryrefslogtreecommitdiff
path: root/httemplate/graph
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-09-25 14:49:44 -0700
committerIvan Kohler <ivan@freeside.biz>2016-09-25 14:49:44 -0700
commita6a4b17cbf6359fecde5135727a59b1f7b54cd9f (patch)
tree978da1610c9e6b80bf2c6f2bc41257bbcd3d6779 /httemplate/graph
parent840dbc8beed6098e3b7ae17dc2553a39f5476553 (diff)
scalar cgi param
Diffstat (limited to 'httemplate/graph')
-rw-r--r--httemplate/graph/signupdate.cgi8
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 ');