diff options
author | jeff <jeff> | 2007-06-05 15:08:40 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-06-05 15:08:40 +0000 |
commit | 2ef0947ad899d67b8d34a5d3519f22f4e40b42ec (patch) | |
tree | bdb5f43e08e46fb3d2a76a4e3f578e568df5e712 /FS | |
parent | d2f2e31ba6c74a7f3ab2bdd1099a61b2c563c6ec (diff) |
correct shorage of variables bound to prepared statement
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/svc_acct.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 1e0389d5c..b8f6349c9 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1753,7 +1753,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 |