projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
protect call to set_usage
[freeside.git]
/
httemplate
/
edit
/
process
/
svc_acct.cgi
diff --git
a/httemplate/edit/process/svc_acct.cgi
b/httemplate/edit/process/svc_acct.cgi
index
0d2c007
..
0b272b5
100755
(executable)
--- 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
}