Skip to content

Commit a268a1a

Browse files
author
Florian Schaal
committed
Prevent master from being a mirror (Fixs #4854)
1 parent 44b3dc9 commit a268a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/admin/server_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function onShowEnd() {
5555
global $app, $conf;
5656

5757
// Getting Servers
58-
$sql = "SELECT server_id,server_name FROM server WHERE server_id != ? ORDER BY server_name";
59-
$mirror_servers = $app->db->queryAllRecords($sql, $this->id);
58+
$sql = "SELECT server_id,server_name FROM server WHERE server_id != ? AND mirror_server_id != ? ORDER BY server_name";
59+
$mirror_servers = $app->db->queryAllRecords($sql, $this->id, $this->id);
6060
$mirror_server_select = '<option value="0">'.$app->tform->lng('- None -').'</option>';
6161
if(is_array($mirror_servers)) {
6262
foreach( $mirror_servers as $mirror_server) {

0 commit comments

Comments
 (0)