Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ $app->tpl->setVar("template_id_option",$template_id_option); ...@@ -72,7 +72,7 @@ $app->tpl->setVar("template_id_option",$template_id_option);
if($_SESSION['s']['user']['typ'] == 'admin') { if($_SESSION['s']['user']['typ'] == 'admin') {
// Load the list of servers // 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 = ''; $server_id_option = '';
foreach($records as $rec){ foreach($records as $rec){
$checked = ($rec['server_id'] == $server_id)?' SELECTED':''; $checked = ($rec['server_id'] == $server_id)?' SELECTED':'';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment