Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
e7fe9ff2
Commit
e7fe9ff2
authored
Dec 27, 2008
by
tbrehm
Browse files
Fixed: Username will be empty in sys_user when a tab is changed in client form.
parent
2787230e
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/client_edit.php
View file @
e7fe9ff2
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
Copyright (c) 2005
- 2008
, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
...
...
@@ -72,7 +72,7 @@ class page_action extends tform_actions {
$text
=
''
;
foreach
(
$tplAdd
as
$item
){
if
(
trim
(
$item
)
!=
''
){
if
(
$text
!=
''
)
$text
.
=
'<br>'
;
if
(
$text
!=
''
)
$text
.
=
'<br
/
>'
;
$text
.
=
$tpl
[
$item
];
}
}
...
...
@@ -132,7 +132,7 @@ class page_action extends tform_actions {
global
$app
;
// username changed
if
(
$this
->
oldDataRecord
[
'username'
]
!=
$this
->
dataRecord
[
'username'
])
{
if
(
isset
(
$this
->
dataRecord
[
'username'
])
&&
$this
->
dataRecord
[
'username'
]
!=
''
&&
$this
->
oldDataRecord
[
'username'
]
!=
$this
->
dataRecord
[
'username'
])
{
$username
=
mysql_real_escape_string
(
$this
->
dataRecord
[
"username"
]);
$client_id
=
$this
->
id
;
$sql
=
"UPDATE sys_user SET username = '
$username
' WHERE client_id =
$client_id
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment