Commit ce7c097c authored by Marius Burkard's avatar Marius Burkard

- fix for previous commit

parent f7b912de
......@@ -160,8 +160,10 @@ 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']);
if($this->id > 0) {
$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