From 8078ab65f951e1307a9e8b8655eb1a988a5e1466 Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 29 Jun 2010 01:01:59 +0000 Subject: [PATCH] protect call to set_usage --- httemplate/edit/process/svc_acct.cgi | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.11.0