Skip to content
Snippets Groups Projects
Commit e6e4454b authored by tbrehm's avatar tbrehm
Browse files

Fixed problem with client ID in shell and ftp user prefix.

parent 310ec5c9
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,9 @@ function getClientName($dataRecord) {
// Get the group-id from the data itself
if(isset($dataRecord['client_group_id'])) {
$client_group_id = $dataRecord['client_group_id'];
} elseif (isset($dataRecord['parent_domain_id'])) {
$tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = " . $dataRecord['parent_domain_id']);
$client_group_id = $tmp['sys_groupid'];
} else {
$client_group_id = $dataRecord['sys_groupid'];
}
......@@ -82,7 +85,10 @@ function getClientID($dataRecord) {
// Get the group-id from the data itself
if(isset($dataRecord['client_group_id'])) {
$client_group_id = $dataRecord['client_group_id'];
} else {
} elseif (isset($dataRecord['parent_domain_id'])) {
$tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = " . $dataRecord['parent_domain_id']);
$client_group_id = $tmp['sys_groupid'];
} else {
$client_group_id = $dataRecord['sys_groupid'];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment