From: jeff Date: Tue, 29 Jun 2010 01:02:35 +0000 (+0000) Subject: protect call to set_usage X-Git-Tag: freeside_1_9_4~30 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=62fcb8667c2cc3214a668729a799104ce5515e69;p=freeside.git protect call to set_usage --- 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 }