[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.16, 1.17
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Jun 28 18:02:01 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv22096
Modified Files:
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.16
retrieving revision 1.17
diff -u -w -d -r1.16 -r1.17
--- svc_acct.cgi 22 Feb 2010 03:24:21 -0000 1.16
+++ svc_acct.cgi 29 Jun 2010 01:01:59 -0000 1.17
@@ -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