summaryrefslogtreecommitdiff
path: root/httemplate/edit/reg_code.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/reg_code.cgi')
-rw-r--r--httemplate/edit/reg_code.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi
index 06bef4879..f5f0f7b66 100644
--- a/httemplate/edit/reg_code.cgi
+++ b/httemplate/edit/reg_code.cgi
@@ -1,6 +1,6 @@
%
%my $agentnum = $cgi->param('agentnum');
-%$agentnum =~ /^(\d+)$/ or eidiot "illegal agentnum $agentnum";
+%$agentnum =~ /^(\d+)$/ or errorpage("illegal agentnum $agentnum");
%$agentnum = $1;
%my $agent = qsearchs('agent', { 'agentnum' => $agentnum } );
%