Commit e958729d authored by Marius Burkard's avatar Marius Burkard

- fixed empty ip address select for clients without default server set

parent a2d22c42
......@@ -160,6 +160,9 @@ class page_action extends tform_actions {
}
$client['web_servers_ids'] = explode(',', $client['web_servers']);
$client['web_servers_ids'][] = $this->dataRecord['server_id'];
$client['web_servers_ids'] = array_unique($client['web_servers_ids']);
$only_one_server = count($client['web_servers_ids']) === 1;
$app->tpl->setVar('only_one_server', $only_one_server);
......
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