Skip to content

Commit 6b890e9

Browse files
author
Till Brehm
committed
Merge branch '6486-wrong-database-name-variable-used-in-rspamd-plugin' into 'develop'
Resolve "Wrong database name variable used in Rspamd plugin" Closes #6486 See merge request ispconfig/ispconfig3!1709
2 parents 7fa44a0 + 507478c commit 6b890e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/rspamd_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function server_update($event_name, $data) {
508508
$mail_config = $app->getconf->get_server_config($conf['server_id'], 'mail');
509509

510510
$local_addrs = array();
511-
$ips = $app->db->queryAllRecords('SELECT `ip_address`, `ip_type` FROM ?? WHERE `server_id` = ?', $conf['mysql']['database'].'.server_ip', $conf['server_id']);
511+
$ips = $app->db->queryAllRecords('SELECT `ip_address`, `ip_type` FROM ?? WHERE `server_id` = ?', $conf['db_database'].'.server_ip', $conf['server_id']);
512512
if(is_array($ips) && !empty($ips)){
513513
foreach($ips as $ip){
514514
$local_addrs[] = array(

0 commit comments

Comments
 (0)