Skip to content

Commit ba9f032

Browse files
committed
Fixed: FS#958 - Resellers can't change clients websites IP
1 parent 9b89182 commit ba9f032

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

interface/web/sites/web_domain_edit.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ function onShowEnd() {
112112

113113
// Fill the client select field
114114
$sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
115-
$clients = $app->db->queryAllRecords($sql);
115+
$records = $app->db->queryAllRecords($sql);
116116
$client_select = '<option value="'.$client['client_id'].'">'.$client['contact_name'].'</option>';
117-
if(is_array($clients)) {
118-
foreach( $clients as $client) {
119-
$selected = @($client["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
120-
$client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n";
117+
if(is_array($records)) {
118+
foreach( $records as $rec) {
119+
$selected = @($rec["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
120+
$client_select .= "<option value='$rec[groupid]' $selected>$rec[name]</option>\r\n";
121121
}
122122
}
123123
$app->tpl->setVar("client_group_id",$client_select);

0 commit comments

Comments
 (0)