Skip to content

Commit 17629b6

Browse files
author
Till Brehm
committed
Update interface/web/sites/database_edit.php
1 parent 1d6b37d commit 17629b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/sites/database_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function onBeforeUpdate() {
369369
} else {
370370
$remote_ips = explode(",", $global_config['default_remote_dbserver']);
371371
}
372-
if (!in_array($server_config['ip_address'], $default_remote_db)) { $remote_ips[] = $server_config['ip_address']; }
372+
if (!in_array($server_config['ip_address'], $remote_ips)) { $remote_ips[] = $server_config['ip_address']; }
373373

374374
if($server_config['ip_address']!='') {
375375
if($this->dataRecord['remote_access'] != 'y'){
@@ -459,7 +459,7 @@ function onBeforeInsert() {
459459
$remote_ips = explode(",", $global_config['default_remote_dbserver']);
460460
}
461461

462-
if (!in_array($server_config['ip_address'], $default_remote_db)) { $remote_ips[] = $server_config['ip_address']; }
462+
if (!in_array($server_config['ip_address'], $remote_ips)) { $remote_ips[] = $server_config['ip_address']; }
463463

464464
if($server_config['ip_address']!='') {
465465
if($this->dataRecord['remote_access'] != 'y'){

0 commit comments

Comments
 (0)