Skip to content

Commit 690ba4c

Browse files
author
Till Brehm
committed
Merge branch '6667-bug-in-mail_mail_domain_plugin-function-mail_mail_domain_edit-spamfilter-update-iterate-over' into 'develop'
Resolve "Bug in mail_mail_domain_plugin function mail_mail_domain_edit spamfilter update iterate over column insteat rows" Closes #6667 See merge request ispconfig/ispconfig3!1866
2 parents 05e989f + e9c9f1b commit 690ba4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/plugins/mail_mail_domain_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function mail_mail_domain_edit($event_name, $page_form) {
255255
// If domain changes, update spamfilter_users
256256
// and fire spamfilter_wblist_update events so rspamd files are rewritten
257257
if ($old_domain != $domain) {
258-
$tmp_users = $app->db->queryOneRecord("SELECT id,fullname FROM spamfilter_users WHERE email LIKE ?", '%@' . $old_domain);
258+
$tmp_users = $app->db->queryAllRecords("SELECT id,fullname FROM spamfilter_users WHERE email LIKE ?", '%@' . $old_domain);
259259
if(is_array($tmp_users)) {
260260
foreach ($tmp_users as $tmp_old) {
261261
$tmp_new = $app->db->queryOneRecord("SELECT id,fullname FROM spamfilter_users WHERE email = ?", '@' . $domain);

0 commit comments

Comments
 (0)