summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2011-06-27 18:50:35 +0000
committerivan <ivan>2011-06-27 18:50:35 +0000
commit002da834587858fe1761816d5127afb05e064a15 (patch)
treeadde338da3dfd9358b4623a2d26966a444d84c67 /httemplate
parentae613d832c5f9fa00f476aa4d5c79450ba6cd159 (diff)
fix svc_acct-no_edit_username, RT#13416
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/svc_acct.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 230a2a5..995bf3b 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -45,7 +45,7 @@ function randomPass() {
<TR>
<TD ALIGN="right"><% mt('Username') |h %></TD>
-% if ( $conf->exists('svc_acct-no_edit_username') ) {
+% if ( $svcnum && $conf->exists('svc_acct-no_edit_username') ) {
<TD BGCOLOR="#eeeeee"><% $svc_acct->username() %></TD>
<INPUT TYPE="hidden" NAME="username" VALUE="<% $username %>">
% } else {