From d716ba29fc2735c5f137e663e4481eb104cc3c21 Mon Sep 17 00:00:00 2001 From: Thom <thom@amsterdamtech.nl> Date: Fri, 25 Feb 2022 21:26:34 +0000 Subject: [PATCH] Fix deactivation of e-mail domain policy (#6286) --- interface/web/mail/mail_domain_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/mail/mail_domain_edit.php b/interface/web/mail/mail_domain_edit.php index 48f6eb2e4d..f17f74e012 100644 --- a/interface/web/mail/mail_domain_edit.php +++ b/interface/web/mail/mail_domain_edit.php @@ -440,7 +440,7 @@ class page_action extends tform_actions { } } - $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = ?", '@' . $domain); + $tmp_user = $app->db->queryOneRecord("SELECT id, policy_id FROM spamfilter_users WHERE email = ?", '@' . $domain); if($tmp_user["id"] > 0) { // There is already a record that we will update if((! $skip_spamfilter_users_update) && ($policy_id != $tmp_user['policy_id'])) { -- GitLab