summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2007-06-05 15:07:28 +0000
committerjeff <jeff>2007-06-05 15:07:28 +0000
commit278929cadb65d4a2412c4e8ff9c32343d6df95f8 (patch)
treea4da04835c9236b2ca81142b45dec423368cd2e0 /FS
parentadc10f166cceda3ce7f21e9c513ed2f69749f29c (diff)
correct shorage of variables bound to prepared statement
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/svc_acct.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 54e019e30..2e499c43d 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -1698,7 +1698,7 @@ sub set_usage {
if (scalar(keys %handyhash)) {
my $sth = $dbh->prepare( $sql )
or die "Error preparing $sql: ". $dbh->errstr;
- my $rv = $sth->execute((grep{$_} values %handyhash), $self->svcnum);
+ my $rv = $sth->execute((values %handyhash), $self->svcnum);
die "Error executing $sql: ". $sth->errstr
unless defined($rv);
die "Can't update usage for svcnum ". $self->svcnum