We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b912d commit ce7c097Copy full SHA for ce7c097
interface/web/sites/web_vhost_domain_edit.php
@@ -160,8 +160,10 @@ function onShowEnd() {
160
}
161
162
$client['web_servers_ids'] = explode(',', $client['web_servers']);
163
- $client['web_servers_ids'][] = $this->dataRecord['server_id'];
164
- $client['web_servers_ids'] = array_unique($client['web_servers_ids']);
+ if($this->id > 0) {
+ $client['web_servers_ids'][] = $this->dataRecord['server_id'];
165
+ $client['web_servers_ids'] = array_unique($client['web_servers_ids']);
166
+ }
167
168
$only_one_server = count($client['web_servers_ids']) === 1;
169
$app->tpl->setVar('only_one_server', $only_one_server);
0 commit comments