Skip to content

Commit 32ed1e4

Browse files
committed
Fixed: FS#1693 - "Is mirror of Server" option lists own server name as possible source.
1 parent c7ef397 commit 32ed1e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/admin/server_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function onShowEnd() {
5454
global $app, $conf;
5555

5656
// Getting Servers
57-
$sql = "SELECT server_id,server_name FROM server WHERE 1 ORDER BY server_name";
57+
$sql = "SELECT server_id,server_name FROM server WHERE server_id != $this->id ORDER BY server_name";
5858
$mirror_servers = $app->db->queryAllRecords($sql);
5959
$mirror_server_select = '<option value="0">'.$app->tform->lng('- None -').'</option>';
6060
if(is_array($mirror_servers)) {

0 commit comments

Comments
 (0)