diff options
author | ivan <ivan> | 2010-06-23 20:51:34 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-23 20:51:34 +0000 |
commit | 4f97c9b8d145f19da0fe95a7e87ca73212b81302 (patch) | |
tree | 197223cf788c54671343c55e8dcabc0b6133a16d /httemplate/misc/cdr-post.cgi | |
parent | 06d46a675063e8a299345c9a2313ac29b9025d74 (diff) |
fix cdrbatch problem, RT#8906
Diffstat (limited to 'httemplate/misc/cdr-post.cgi')
-rw-r--r-- | httemplate/misc/cdr-post.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/cdr-post.cgi b/httemplate/misc/cdr-post.cgi index d9e42fa99..46d9424e7 100644 --- a/httemplate/misc/cdr-post.cgi +++ b/httemplate/misc/cdr-post.cgi @@ -10,6 +10,7 @@ die "access denied" my $error = ''; my $cdr_batch; +my $cdrbatch = ''; { @@ -29,7 +30,7 @@ my $cdr_batch; my $csv = new Text::CSV_XS or die Text::CSV->error_diag; - my $cdrbatch = time2str('post-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); + $cdrbatch = time2str('post-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); $cdr_batch = new FS::cdr_batch { 'cdrbatch' => $cdrbatch }; $error = $cdr_batch->insert and last; |