diff options
author | jeff <jeff> | 2010-06-29 01:17:08 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-06-29 01:17:08 +0000 |
commit | aac306bf608d21e3e8e739285cf77e66c32aabde (patch) | |
tree | d8b5b1033ee22e719e9788a7ab1ddda1015d0f2d /httemplate | |
parent | 8078ab65f951e1307a9e8b8655eb1a988a5e1466 (diff) |
protect set_usage and reset_usage here, too
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/misc/process/recharge_svc.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/misc/process/recharge_svc.html b/httemplate/misc/process/recharge_svc.html index 5f68bf151..b56f8a282 100755 --- a/httemplate/misc/process/recharge_svc.html +++ b/httemplate/misc/process/recharge_svc.html @@ -62,6 +62,7 @@ unless ($error) { $error = $cust_main->charge($amount, "Recharge " . $svc_acct->label, $description, $part_pkg->taxclass); + $error ||= "invalid $_" foreach grep { $rhash{$_} !~ /^\d*$/ } keys %rhash; if ($part_pkg->option('recharge_reset', 1)) { $error ||= $svc_acct->set_usage(\%rhash, 'null' => 1); }else{ |