Commit 0da7c51f authored by tbrehm's avatar tbrehm
Browse files

Fixed a bug in DNS wizard to prevent that slave servers show up in the server...

Fixed a bug in DNS wizard to prevent that slave servers show up in the server list when they are a mirror.
parent fe136662
......@@ -72,7 +72,7 @@ $app->tpl->setVar("template_id_option",$template_id_option);
if($_SESSION['s']['user']['typ'] == 'admin') {
// Load the list of servers
$records = $app->db->queryAllRecords("SELECT server_id, server_name FROM server WHERE dns_server = 1 ORDER BY server_name");
$records = $app->db->queryAllRecords("SELECT server_id, server_name FROM server WHERE mirror_server_id = 0 AND dns_server = 1 ORDER BY server_name");
$server_id_option = '';
foreach($records as $rec){
$checked = ($rec['server_id'] == $server_id)?' SELECTED':'';
......
Supports Markdown
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