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