diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php
index a3b36115c42fba9934bde0e91db76bc101055447..5887be6e01bd7e6c959e7cd6457cf4a38acf81d1 100644
--- a/interface/web/sites/web_domain_edit.php
+++ b/interface/web/sites/web_domain_edit.php
@@ -112,12 +112,12 @@ class page_action extends tform_actions {
// Fill the client select field
$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";
- $clients = $app->db->queryAllRecords($sql);
+ $records = $app->db->queryAllRecords($sql);
$client_select = '';
- if(is_array($clients)) {
- foreach( $clients as $client) {
- $selected = @($client["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
- $client_select .= "\r\n";
+ if(is_array($records)) {
+ foreach( $records as $rec) {
+ $selected = @($rec["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
+ $client_select .= "\r\n";
}
}
$app->tpl->setVar("client_group_id",$client_select);