diff options
author | jeff <jeff> | 2010-06-29 01:02:35 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-06-29 01:02:35 +0000 |
commit | 62fcb8667c2cc3214a668729a799104ce5515e69 (patch) | |
tree | b0b20d49e53cac2066a90dfb800974a28bb72e94 | |
parent | d25c55c2273aa62676dda8d60959f11b27020935 (diff) |
protect call to set_usage
-rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index 0d2c007f1..0b272b5b1 100755 --- a/httemplate/edit/process/svc_acct.cgi +++ b/httemplate/edit/process/svc_acct.cgi @@ -70,6 +70,7 @@ if ( $svcnum ) { grep { $new->$_ } qw( seconds upbytes downbytes totalbytes ); + $error ||= "invalid $_" foreach grep { $hash{$_} !~ /^\d+$/ } keys %hash; $error ||= $new->set_usage(\%hash); #unoverlimit and trigger radius changes last; #once is enough } |