diff --git a/interface/web/mail/mail_domain_edit.php b/interface/web/mail/mail_domain_edit.php index 48f6eb2e4d5f5ec90bd8f27cec7491147301ec62..f17f74e012f664dec4289db576905fc4921ed6b0 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'])) {