diff options
author | jeff <jeff> | 2010-06-29 01:01:59 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-06-29 01:01:59 +0000 |
commit | 8078ab65f951e1307a9e8b8655eb1a988a5e1466 (patch) | |
tree | 130e6224505fff4f29c15d009a64e4660026e4d4 /httemplate | |
parent | a832705d5aa5ff8d148be4f84faf4faf656d4000 (diff) |
protect call to set_usage
Diffstat (limited to 'httemplate')
-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 } |