Commit 958241d1 authored by tbrehm's avatar tbrehm
Browse files

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

parent b464e2dd
......@@ -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'];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment