Skip to content
Snippets Groups Projects
Commit a268a1a6 authored by Florian Schaal's avatar Florian Schaal
Browse files

Prevent master from being a mirror (Fixs #4854)

parent 44b3dc96
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,8 @@ class page_action extends tform_actions { ...@@ -55,8 +55,8 @@ class page_action extends tform_actions {
global $app, $conf; global $app, $conf;
// Getting Servers // Getting Servers
$sql = "SELECT server_id,server_name FROM server WHERE server_id != ? ORDER BY server_name"; $sql = "SELECT server_id,server_name FROM server WHERE server_id != ? AND mirror_server_id != ? ORDER BY server_name";
$mirror_servers = $app->db->queryAllRecords($sql, $this->id); $mirror_servers = $app->db->queryAllRecords($sql, $this->id, $this->id);
$mirror_server_select = '<option value="0">'.$app->tform->lng('- None -').'</option>'; $mirror_server_select = '<option value="0">'.$app->tform->lng('- None -').'</option>';
if(is_array($mirror_servers)) { if(is_array($mirror_servers)) {
foreach( $mirror_servers as $mirror_server) { foreach( $mirror_servers as $mirror_server) {
......
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