correct shorage of variables bound to prepared statement
authorjeff <jeff>
Tue, 5 Jun 2007 15:08:40 +0000 (15:08 +0000)
committerjeff <jeff>
Tue, 5 Jun 2007 15:08:40 +0000 (15:08 +0000)
FS/FS/svc_acct.pm

index 1e0389d..b8f6349 100644 (file)
@@ -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