Skip to content

Commit d53109a

Browse files
author
Till Brehm
committed
Merge branch '6430-php8-unable-to-add-database-on-multiserver-setup-withs-eparate-db-server' into 'develop'
Resolve "PHP8: Unable to add database on multiserver setup withs eparate DB server" Closes #6430 See merge request ispconfig/ispconfig3!1673
2 parents 1d6b37d + 17629b6 commit d53109a

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)