[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.11.4.4, 1.11.4.5
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Jun 28 18:02:37 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv22138
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_acct.cgi
Log Message:
protect call to set_usage
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_acct.cgi,v
retrieving revision 1.11.4.4
retrieving revision 1.11.4.5
diff -u -w -d -r1.11.4.4 -r1.11.4.5
--- svc_acct.cgi 22 Feb 2010 03:24:22 -0000 1.11.4.4
+++ svc_acct.cgi 29 Jun 2010 01:02:35 -0000 1.11.4.5
@@ -70,6 +70,7 @@
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
}
More information about the freeside-commits
mailing list