Skip to content
Snippets Groups Projects
Commit d716ba29 authored by Thom's avatar Thom :tools:
Browse files

Fix deactivation of e-mail domain policy (#6286)

parent 9954d8f5
No related branches found
No related tags found
No related merge requests found
...@@ -440,7 +440,7 @@ class page_action extends tform_actions { ...@@ -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) { if($tmp_user["id"] > 0) {
// There is already a record that we will update // There is already a record that we will update
if((! $skip_spamfilter_users_update) && ($policy_id != $tmp_user['policy_id'])) { if((! $skip_spamfilter_users_update) && ($policy_id != $tmp_user['policy_id'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment